mirror of
https://git.eden-emu.dev/archive/citron
synced 2026-03-27 20:09:34 -04:00
chore: update project branding to CITRON
Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
// citron data directories
|
||||
|
||||
#define YUZU_DIR "citron"
|
||||
#define CITRON_DIR "citron"
|
||||
#define PORTABLE_DIR "user"
|
||||
|
||||
// Sub-directories contained within a citron data directory
|
||||
|
||||
@@ -88,11 +88,11 @@ public:
|
||||
fs::path citron_path_config;
|
||||
|
||||
#ifdef _WIN32
|
||||
#ifdef YUZU_ENABLE_PORTABLE
|
||||
#ifdef CITRON_ENABLE_PORTABLE
|
||||
citron_path = GetExeDirectory() / PORTABLE_DIR;
|
||||
#endif
|
||||
if (!IsDir(citron_path)) {
|
||||
citron_path = GetAppDataRoamingDirectory() / YUZU_DIR;
|
||||
citron_path = GetAppDataRoamingDirectory() / CITRON_DIR;
|
||||
}
|
||||
|
||||
citron_path_cache = citron_path / CACHE_DIR;
|
||||
@@ -102,16 +102,16 @@ public:
|
||||
citron_path_cache = citron_path / CACHE_DIR;
|
||||
citron_path_config = citron_path / CONFIG_DIR;
|
||||
#else
|
||||
#ifdef YUZU_ENABLE_PORTABLE
|
||||
#ifdef CITRON_ENABLE_PORTABLE
|
||||
citron_path = GetCurrentDir() / PORTABLE_DIR;
|
||||
#endif
|
||||
if (Exists(citron_path) && IsDir(citron_path)) {
|
||||
citron_path_cache = citron_path / CACHE_DIR;
|
||||
citron_path_config = citron_path / CONFIG_DIR;
|
||||
} else {
|
||||
citron_path = GetDataDirectory("XDG_DATA_HOME") / YUZU_DIR;
|
||||
citron_path_cache = GetDataDirectory("XDG_CACHE_HOME") / YUZU_DIR;
|
||||
citron_path_config = GetDataDirectory("XDG_CONFIG_HOME") / YUZU_DIR;
|
||||
citron_path = GetDataDirectory("XDG_DATA_HOME") / CITRON_DIR;
|
||||
citron_path_cache = GetDataDirectory("XDG_CACHE_HOME") / CITRON_DIR;
|
||||
citron_path_config = GetDataDirectory("XDG_CONFIG_HOME") / CITRON_DIR;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user