pingus-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pingus-CVS] [pingus] push by address@hidden - Fixedn typo in datadir on


From: pingus
Subject: [Pingus-CVS] [pingus] push by address@hidden - Fixedn typo in datadir on 2011-12-29 03:51 GMT
Date: Thu, 29 Dec 2011 03:52:03 +0000

Revision: 415e12e7f7c8
Author:   Josh Dye <address@hidden>
Date:     Wed Dec 28 19:50:40 2011
Log:      Fixedn typo in datadir

http://code.google.com/p/pingus/source/detail?r=415e12e7f7c8

Modified:
 /src/pingus/pingus_main.cpp

=======================================
--- /src/pingus/pingus_main.cpp Wed Dec 28 18:42:46 2011
+++ /src/pingus/pingus_main.cpp Wed Dec 28 19:50:40 2011
@@ -434,8 +434,12 @@
 // private helper to check if a file exists
 static bool file_exists(char *filename)
 {
-  struct stat buffer ;
-  return stat( filename, &buffer );
+       struct stat buf;
+    if (stat(filename, &buf) != -1)
+    {
+        return true;
+    }
+    return false;
 }
 #endif

@@ -457,7 +461,7 @@
 #if defined(__APPLE__)
     char path[PATH_MAX];
     getcwd(path, PATH_MAX);
-    if (file_exists(strcat(path,"data")))
+    if (file_exists(strcat(path,"/data/images/fonts/chalk-40px.font")))
     {
g_path_manager.set_path("data"); // assume game is run from source dir
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]