diff options
| author | JosJuice <josjuice@gmail.com> | 2017-09-09 18:53:55 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-12-24 17:13:04 +0100 |
| commit | d1c1793a342c61c2e04ca19136fa2ecf50d34898 (patch) | |
| tree | 4a0e65fce99df0e10a00ba26e3291b9e814cd1dc /Source/Core/Common/FileUtil.cpp | |
| parent | b187d4cd084b20f389d1440b5de53b89101817d5 (diff) | |
Don't expose SYSDATA_DIR in a header
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/FileUtil.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index 78141d6095..3257393cca 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -692,6 +692,20 @@ std::string GetSysDirectory() { std::string sysDir; +#if defined(_WIN32) || defined(LINUX_LOCAL_DEV) +#define SYSDATA_DIR "Sys" +#elif defined __APPLE__ +#define SYSDATA_DIR "Contents/Resources/Sys" +#elif defined ANDROID +#define SYSDATA_DIR "/sdcard/dolphin-emu" +#else +#ifdef DATA_DIR +#define SYSDATA_DIR DATA_DIR "sys" +#else +#define SYSDATA_DIR "sys" +#endif +#endif + #if defined(__APPLE__) sysDir = GetBundleDirectory() + DIR_SEP + SYSDATA_DIR; #elif defined(_WIN32) || defined(LINUX_LOCAL_DEV) |
