Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/games/allacrost/files/patch-src_main.cpp
16135 views
1
--- src/main.cpp.orig 2010-05-17 22:52:57 UTC
2
+++ src/main.cpp
3
@@ -364,11 +364,9 @@ int main(int argc, char *argv[]) {
4
// Now the program should be in app/Contents
5
path.append ("/Resources/");
6
chdir(path.c_str());
7
- #elif (defined(__linux__) || defined(__FreeBSD__)) && !defined(RELEASE_BUILD)
8
- // Look for data files in DATADIR only if they are not available in the
9
- // current directory.
10
- if (ifstream("dat/config/settings.lua") == NULL)
11
- chdir(DATADIR);
12
+ #elif (defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)) && !defined(RELEASE_BUILD)
13
+ // Always look into datadir
14
+ chdir(DATADIR);
15
#endif
16
17
// Initialize the random number generator (note: 'unsigned int' is a required usage in this case)
18
19