Fixed trailing whitespaces in all(?) source files of supertux, also fixed some svn...
[supertux.git] / src / main.cpp
index a8aab06..7308098 100644 (file)
@@ -29,7 +29,6 @@
 #include <stdlib.h>
 #include <sys/stat.h>
 #include <sys/types.h>
-#include <dirent.h>
 #include <unistd.h>
 #include <assert.h>
 #include <physfs.h>
@@ -176,17 +175,21 @@ static void init_physfs(const char* argv0)
   }
 #endif
 
+#ifdef _WIN32
+  PHYSFS_addToSearchPath(".\\data", 1);
+#endif
+
   if(!sourcedir) {
 #if defined(APPDATADIR) || defined(ENABLE_BINRELOC)
     std::string datadir;
 #ifdef ENABLE_BINRELOC
 
     char* dir;
-    br_init (NULL); 
-    dir = br_find_data_dir(APPDATADIR); 
+    br_init (NULL);
+    dir = br_find_data_dir(APPDATADIR);
     datadir = dir;
     datadir += "/" PACKAGE_NAME;
-    free(dir); 
+    free(dir);
 
 #else
     datadir = APPDATADIR;