Getting desperate

This commit is contained in:
mathusummut
2019-04-05 01:31:51 +02:00
parent e8b52942f5
commit 9e58a15813

View File

@@ -223,26 +223,34 @@ namespace Game {
// Look in standard linux shared paths for ini files
#if defined(__linux__)
if (foundPath == false) {
foundPath =
tryCustomPath(cfgType, fileName, "/usr/share/glest/");
}
if (foundPath == false) {
foundPath =
tryCustomPath(cfgType, fileName, "/usr/share/games/glest/");
}
if (foundPath == false) {
foundPath =
tryCustomPath(cfgType, fileName, "/usr/local/share/glest/");
}
if (foundPath == false) {
foundPath =
tryCustomPath(cfgType, fileName, "/usr/local/share/games/glest/");
}
if (foundPath == false) {
foundPath =
tryCustomPath(cfgType, fileName, "/app/share/glest/");
}
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/usr/share/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/usr/share/games/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/usr/local/share/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/usr/local/share/games/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/app/share/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/app/share/games/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/app/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/app/games/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/share/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/share/games/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/local/share/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/local/share/games/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/glest/");
if (foundPath == false)
foundPath = tryCustomPath(cfgType, fileName, "/games/glest/");
#endif
if (SystemFlags::VERBOSE_MODE_ENABLED)