Path: blob/main/games/allacrost/files/patch-src_main.cpp
16135 views
--- src/main.cpp.orig 2010-05-17 22:52:57 UTC1+++ src/main.cpp2@@ -364,11 +364,9 @@ int main(int argc, char *argv[]) {3// Now the program should be in app/Contents4path.append ("/Resources/");5chdir(path.c_str());6- #elif (defined(__linux__) || defined(__FreeBSD__)) && !defined(RELEASE_BUILD)7- // Look for data files in DATADIR only if they are not available in the8- // current directory.9- if (ifstream("dat/config/settings.lua") == NULL)10- chdir(DATADIR);11+ #elif (defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)) && !defined(RELEASE_BUILD)12+ // Always look into datadir13+ chdir(DATADIR);14#endif1516// Initialize the random number generator (note: 'unsigned int' is a required usage in this case)171819