Revision: 415e12e7f7c8
Author: Josh Dye <[email protected]>
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
}
_______________________________________________
pingus-cvs mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/pingus-cvs