forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
How Paths Are Handled
alef edited this page Dec 4, 2022
·
3 revisions
cata_path::root_path {
base ←
Base path for all game data subdirectories
--basepath <dir>
calls PATH_INFO::init_base_path(dir); set_standard_filenames()
#if defined(PREFIX)
calls PATH_INFO::init_base_path(PREFIX)
Makefile
uses PREFIX
for Linux and Cygwin builds, and if set will enable DATA_DIR_PREFIX
.
DATA_PREFIX = $(DESTDIR)$(PREFIX)/share/cataclysm-dda/
...
config
data ←
Sub directory from which game data is loaded
--datadir <dir>
calls PATH_INFO::set_datadir(<dir>)
#if defined(DATA_DIR_PREFIX)
appends to datadir
-
basepath + "share/cataclysm-dda"
- else,
basepath + "data/"
...
memorial
save
user ←
Base path for user-overrides to files from the ./data directory and named below
--userdir <dir>
calls PATH_INFO::init_user_dir(); set_standard_filenames()
...
unknown
}