#ddnet #teeworlds #directory #path #access #config-directory #client

bin+lib twstorage

Access the data and config directories of Teeworlds and DDNet

2 releases

new 0.1.1 Apr 30, 2024
0.1.0 Apr 30, 2024

#437 in Filesystem


Used in 4 crates (via twmap)

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–10MB
~55K SLoC