#ddnet #teeworlds #config-directory #config-file #access #steam #file-access

bin+lib twstorage

Access the data and config directories of Teeworlds and DDNet

2 releases

0.1.1 Apr 30, 2024
0.1.0 Apr 30, 2024

#191 in Games

Download history 186/week @ 2024-07-21 111/week @ 2024-07-28 136/week @ 2024-08-04 221/week @ 2024-08-11 252/week @ 2024-08-18 330/week @ 2024-08-25 290/week @ 2024-09-01 208/week @ 2024-09-08 307/week @ 2024-09-15 342/week @ 2024-09-22 408/week @ 2024-09-29 227/week @ 2024-10-06 130/week @ 2024-10-13 204/week @ 2024-10-20 172/week @ 2024-10-27 239/week @ 2024-11-03

779 downloads per month
Used in 11 crates (2 directly)

AGPL-3.0-only

17KB
305 lines

TwStorage

Various tools require access to files distributed alongside the Teeworlds/DDNet client. Additionally, the config directory of Teeworlds/DDNet needs to be taken into account for such file accesses.

This Rust crate locates the respective directories, and provides methods to access contained resources.

Future Work

Contributions are very welcome! As of yet, this crate is still both bare-bones and untested.

TODOs:

  • MacOS support
  • More functionality (iterate over directories, create files, delete files)
  • Create config directory, if unavailable
  • More stable detection for Steam installations. Does ~/.steam always exist on Linux? What about non-standard Steam installation locations on Windows? Maybe parse (JSON) libraryfolders.vdf to detect all local Steam library paths.

Dependencies

~0–9.5MB
~41K SLoC