taisei/src/paths
Andrei "Akari" Alexeyev 347be23de2 Use the SDL2 filesystem API to setup paths by default.
https://wiki.libsdl.org/CategoryFilesystem

This ensures that userdata will be saved in a standard user-specific location on any OS. On Linux, the XDG Base Directory Specification is followed, which means the config directory will typically be ~/.local/share/taisei/ now (further info: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html).

A static prefix is still used for the game assets by default. In RELATIVE builds, SDL_GetBasePath is used rather than the current working directory, and the config path is still defined by SDL_GetPrefPath.

Pass -DUSE_SDL2_PATHS=FALSE to cmake for old behaviour.
2017-02-04 08:27:46 +02:00
..
native.h Use the SDL2 filesystem API to setup paths by default. 2017-02-04 08:27:46 +02:00
relative.c Use the SDL2 filesystem API to setup paths by default. 2017-02-04 08:27:46 +02:00
sdl.c Use the SDL2 filesystem API to setup paths by default. 2017-02-04 08:27:46 +02:00
static.c Use the SDL2 filesystem API to setup paths by default. 2017-02-04 08:27:46 +02:00