summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorOatmealDome <julian@oatmealdome.me>2023-01-17 14:20:57 -0500
committerOatmealDome <julian@oatmealdome.me>2023-01-31 17:57:09 -0500
commit59a44bea505ef802e4d8d15ca161c62be3d49a8f (patch)
treecbd00ec040972cb1ac94fd8151ecfe464d3b0292 /Source
parentaf33d4f13f0de58144b3aace54800bf3fbdbc111 (diff)
CommonPaths: Split platform-specific definitions for user directories into two blocks
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Common/CommonPaths.h27
1 files changed, 18 insertions, 9 deletions
diff --git a/Source/Core/Common/CommonPaths.h b/Source/Core/Common/CommonPaths.h
index 987a99d8cf..ab141eb450 100644
--- a/Source/Core/Common/CommonPaths.h
+++ b/Source/Core/Common/CommonPaths.h
@@ -7,25 +7,34 @@
#define DIR_SEP "/"
#define DIR_SEP_CHR '/'
+// The current working directory
#define ROOT_DIR "."
+
+// The normal user directory
#ifdef _WIN32
-#define PORTABLE_USER_DIR "User"
#define NORMAL_USER_DIR "Dolphin Emulator"
-#elif defined __APPLE__
-#define PORTABLE_USER_DIR "User"
-#define EMBEDDED_USER_DIR "Contents/Resources/User"
+#elif defined(__APPLE__)
#define NORMAL_USER_DIR "Library/Application Support/Dolphin"
-#elif defined ANDROID
-#define PORTABLE_USER_DIR "user"
-#define EMBEDDED_USER_DIR PORTABLE_USER_DIR
+#elif defined(ANDROID)
#define NORMAL_USER_DIR "/sdcard/dolphin-emu"
-#define NOMEDIA_FILE ".nomedia"
+#else
+#define NORMAL_USER_DIR "dolphin-emu"
+#endif
+
+// The portable user directory
+#ifdef _WIN32
+#define PORTABLE_USER_DIR "User"
+#elif defined(__APPLE__)
+#define PORTABLE_USER_DIR "User"
+#define EMBEDDED_USER_DIR "Contents/Resources/User"
#else
#define PORTABLE_USER_DIR "user"
#define EMBEDDED_USER_DIR PORTABLE_USER_DIR
-#define NORMAL_USER_DIR "dolphin-emu"
#endif
+// Flag file to prevent media scanning from indexing a directory
+#define NOMEDIA_FILE ".nomedia"
+
// Dirs in both User and Sys
// Legacy setups used /JAP/ while newer setups use /JPN/ by default.
#define EUR_DIR "EUR"