Browse Source

Some path changes to make debugging a little easier. These should not be hard coded in the future

David Wimsey 11 years ago
parent
commit
787f3a8158
1 changed files with 8 additions and 9 deletions
  1. 8 9
      Samples/pyinvaders/src/main.cpp

+ 8 - 9
Samples/pyinvaders/src/main.cpp

@@ -71,15 +71,14 @@ int main(int ROCKET_UNUSED_PARAMETER(argc), char** ROCKET_UNUSED_PARAMETER(argv)
 	ROCKET_UNUSED(argv);
 #endif
 
-	#ifdef ROCKET_PLATFORM_MACOSX
-	#define APP_PATH "../"
-	#define ROCKET_PATH "../../bin/"
-	#else
-	#define APP_PATH "../Samples/pyinvaders/"
-	#define ROCKET_PATH "."
-	#endif
-
-	#ifdef ROCKET_PLATFORM_WIN32
+// @TODO Make these lookup at runtime rather than using hard coded paths
+#ifdef ROCKET_PLATFORM_LINUX
+#define APP_PATH "../Samples/pyinvaders/"
+#else
+#define APP_PATH "../../Samples/pyinvaders/"
+#define ROCKET_PATH "."
+#endif
+
 #ifdef ROCKET_PLATFORM_WIN32
 	DoAllocConsole();
 #endif