summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2015-03-16 20:32:51 -0400
committerGravatar bunnei2015-03-16 20:32:51 -0400
commit6977877665069882caac209cda9b4e4d52a5de22 (patch)
tree7da476e6d541c1480050d1a6de91b45f1afc2846
parentMerge pull request #652 from neobrain/shader_output_fix (diff)
parentCommon: Fix logic for setting EMU_DATA_DIR. (diff)
downloadyuzu-6977877665069882caac209cda9b4e4d52a5de22.tar.gz
yuzu-6977877665069882caac209cda9b4e4d52a5de22.tar.xz
yuzu-6977877665069882caac209cda9b4e4d52a5de22.zip
Merge pull request #661 from linkmauve/cleanup
Fix two minor understandability issues in common
-rw-r--r--src/common/common_paths.h11
-rw-r--r--src/common/platform.h6
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