diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/common_paths.h | 11 | ||||
| -rw-r--r-- | src/common/platform.h | 6 |
2 files changed, 6 insertions, 11 deletions
diff --git a/src/common/common_paths.h b/src/common/common_paths.h index eb43d589f..440b06060 100644 --- a/src/common/common_paths.h +++ b/src/common/common_paths.h | |||
| @@ -17,13 +17,12 @@ | |||
| 17 | 17 | ||
| 18 | // The user data dir | 18 | // The user data dir |
| 19 | #define ROOT_DIR "." | 19 | #define ROOT_DIR "." |
| 20 | #ifdef _WIN32 | 20 | #define USERDATA_DIR "user" |
| 21 | #define USERDATA_DIR "user" | 21 | #ifdef USER_DIR |
| 22 | #define EMU_DATA_DIR "Citra Emulator" | 22 | #define EMU_DATA_DIR USER_DIR |
| 23 | #else | 23 | #else |
| 24 | #define USERDATA_DIR "user" | 24 | #ifdef _WIN32 |
| 25 | #ifdef USER_DIR | 25 | #define EMU_DATA_DIR "Citra Emulator" |
| 26 | #define EMU_DATA_DIR USER_DIR | ||
| 27 | #else | 26 | #else |
| 28 | #define EMU_DATA_DIR "citra-emu" | 27 | #define EMU_DATA_DIR "citra-emu" |
| 29 | #endif | 28 | #endif |
diff --git a/src/common/platform.h b/src/common/platform.h index ba1109c9f..e27d6e31f 100644 --- a/src/common/platform.h +++ b/src/common/platform.h | |||
| @@ -83,7 +83,7 @@ inline struct tm* localtime_r(const time_t *clock, struct tm *result) { | |||
| 83 | } | 83 | } |
| 84 | #endif | 84 | #endif |
| 85 | 85 | ||
| 86 | #else | 86 | #else // EMU_PLATFORM != PLATFORM_WINDOWS |
| 87 | 87 | ||
| 88 | #define EMU_FASTCALL __attribute__((fastcall)) | 88 | #define EMU_FASTCALL __attribute__((fastcall)) |
| 89 | #define __stdcall | 89 | #define __stdcall |
| @@ -92,10 +92,6 @@ inline struct tm* localtime_r(const time_t *clock, struct tm *result) { | |||
| 92 | #define BOOL bool | 92 | #define BOOL bool |
| 93 | #define DWORD u32 | 93 | #define DWORD u32 |
| 94 | 94 | ||
| 95 | #endif | ||
| 96 | |||
| 97 | #if EMU_PLATFORM != PLATFORM_WINDOWS | ||
| 98 | |||
| 99 | // TODO: Hacks.. | 95 | // TODO: Hacks.. |
| 100 | #include <limits.h> | 96 | #include <limits.h> |
| 101 | 97 | ||