I just put together a lightweight and cross-platform library to help with a mod/plugin system I’m making. It might be useful to you if you’re also making a cross-platform game that needs to load data from a data directory.
It has three jobs:
- Find the data directory (XDG_DATA_HOME/APPDATA/Application Support)
- Manipulate file paths for easy file finding
- Walk through directory contents
Let me know if you find it useful or would like to see other features.