This commit is contained in:
Mike Swanson 2015-09-30 00:24:33 +00:00
commit e18a95be65

View file

@ -62,6 +62,16 @@ bool Sys_GetPath(sysPath_t type, idStr &path) {
common->Warning("base path '" BUILD_DATADIR "' does not exist");
// fallback to vanilla doom3 install
if (stat(LINUX_DEFAULT_PATH, &st) != -1 && S_ISDIR(st.st_mode)) {
common->Warning("using hardcoded default base path");
path = LINUX_DEFAULT_PATH;
return true;
}
common->Warning("base path '" LINUX_DEFAULT_PATH "' does not exist");
// try next to the executable..
if (Sys_GetPath(PATH_EXE, path)) {
path = path.StripFilename();
@ -73,14 +83,6 @@ bool Sys_GetPath(sysPath_t type, idStr &path) {
}
}
// fallback to vanilla doom3 install
if (stat(LINUX_DEFAULT_PATH, &st) != -1 && S_ISDIR(st.st_mode)) {
common->Warning("using hardcoded default base path");
path = LINUX_DEFAULT_PATH;
return true;
}
return false;
case PATH_CONFIG: