CommonPaths: Split platform-specific definitions for user directories into two blocks

This commit is contained in:
OatmealDome 2023-01-17 14:20:57 -05:00
parent af33d4f13f
commit 59a44bea50
1 changed files with 18 additions and 9 deletions

View File

@ -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 NORMAL_USER_DIR "Dolphin Emulator"
#elif defined(__APPLE__)
#define NORMAL_USER_DIR "Library/Application Support/Dolphin"
#elif defined(ANDROID)
#define NORMAL_USER_DIR "/sdcard/dolphin-emu"
#else
#define NORMAL_USER_DIR "dolphin-emu"
#endif
// The portable user directory
#ifdef _WIN32
#define PORTABLE_USER_DIR "User"
#define NORMAL_USER_DIR "Dolphin Emulator"
#elif defined __APPLE__
#elif defined(__APPLE__)
#define PORTABLE_USER_DIR "User"
#define EMBEDDED_USER_DIR "Contents/Resources/User"
#define NORMAL_USER_DIR "Library/Application Support/Dolphin"
#elif defined ANDROID
#define PORTABLE_USER_DIR "user"
#define EMBEDDED_USER_DIR PORTABLE_USER_DIR
#define NORMAL_USER_DIR "/sdcard/dolphin-emu"
#define NOMEDIA_FILE ".nomedia"
#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"