mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-04-20 09:33:37 +00:00
Merge a276654b0a
into 6ba1b71fb1
This commit is contained in:
commit
e18a95be65
1 changed files with 10 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue