common: Support macOS application data path conventions. (#6258)

This commit is contained in:
Steveice10
2023-01-23 01:50:50 -08:00
committed by GitHub
parent 9b20bcea0f
commit d704c6a3ac
2 changed files with 23 additions and 6 deletions

View File

@@ -20,6 +20,10 @@
#else
#ifdef _WIN32
#define EMU_DATA_DIR "Citra"
#elif defined(__APPLE__)
#define MACOS_EMU_DATA_DIR "Library" DIR_SEP "Application Support" DIR_SEP "Citra"
// For compatibility with XDG paths.
#define EMU_DATA_DIR "citra-emu"
#elif ANDROID
// On Android internal storage is mounted as "/sdcard"
#define SDCARD_DIR "sdcard"