taisei/src/vfs
Andrei Alexeyev a8d8bbf2bc vfs: try to put cache in platform-appropriate locations
Windows: %LOCALAPPDATA%\taisei\cache
Linux and *BSD: $XDG_CACHE_HOME/taisei (xdg basedir spec); usually
~/.cache/taisei
macOS: NSCachesDirectory; probably ~/Library/Caches/taisei
Fallback: $storage/cache (old behavior)

This commit also introduces a more modular and buildsystem-driven
approach to specifying those paths, and makes vfs initialization more
resilient. The game will try to create missing directories recursively,
and will not crash if storage or cache can not be mounted.

Co-authored-by: Alice D <alice@starwitch.productions>
2020-12-07 22:36:35 +02:00
..
platform_paths vfs: try to put cache in platform-appropriate locations 2020-12-07 22:36:35 +02:00
error.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
loadpacks.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
loadpacks.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
meson.build vfs: try to put cache in platform-appropriate locations 2020-12-07 22:36:35 +02:00
nodeapi.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
pathutil.c vfs: try to put cache in platform-appropriate locations 2020-12-07 22:36:35 +02:00
pathutil.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
private.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
private.h add attr_returns_allocated for functions that allocate new objects 2019-08-04 01:29:41 +03:00
public.c Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
public.h Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
readonly_wrapper.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
readonly_wrapper.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
readonly_wrapper_public.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
setup.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
setup_emscripten.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
setup_generic.c vfs: try to put cache in platform-appropriate locations 2020-12-07 22:36:35 +02:00
setup_switch.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
sync_emscripten.c Don't redefine standard complex macro; use a new cmplx typedef 2019-11-22 05:38:48 +02:00
sync_noop.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
syspath.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
syspath_posix.c vfs: try to put cache in platform-appropriate locations 2020-12-07 22:36:35 +02:00
syspath_public.c vfs: try to put cache in platform-appropriate locations 2020-12-07 22:36:35 +02:00
syspath_public.h vfs: try to put cache in platform-appropriate locations 2020-12-07 22:36:35 +02:00
syspath_win32.c vfs: try to put cache in platform-appropriate locations 2020-12-07 22:36:35 +02:00
union.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
union.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
union_public.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
union_public.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
vdir.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
vdir.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
zipfile.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
zipfile.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
zipfile_impl.h Don't redefine standard complex macro; use a new cmplx typedef 2019-11-22 05:38:48 +02:00
zipfile_null.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
zipfile_public.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
zipfile_public.h make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00
zippath.c make upkeep script preserve existing copyrights 2019-08-03 20:44:22 +03:00