Improve default IWAD search paths for Unix

- /usr/share/doom and /usr/share/games/doom are better default paths than
  /usr/local/share
This commit is contained in:
Randy Heit 2015-03-23 17:01:49 -05:00
parent 7dbabb5ee7
commit 86e1d3ed9a

View file

@ -138,7 +138,13 @@ FGameConfigFile::FGameConfigFile ()
SetValueForKey ("Path", "$PROGDIR", true); SetValueForKey ("Path", "$PROGDIR", true);
#else #else
SetValueForKey ("Path", "~/" GAME_DIR, true); SetValueForKey ("Path", "~/" GAME_DIR, true);
SetValueForKey ("Path", SHARE_DIR, true); // Arch Linux likes them in /usr/share/doom
// Debian likes them in /usr/share/games/doom
// I assume other distributions don't do anything radically different
SetValueForKey ("Path", "/usr/local/share/doom", true);
SetValueForKey ("Path", "/usr/local/share/games/doom", true);
SetValueForKey ("Path", "/usr/share/doom", true);
SetValueForKey ("Path", "/usr/share/games/doom", true);
#endif #endif
} }
@ -166,24 +172,24 @@ FGameConfigFile::FGameConfigFile ()
CreateSectionAtStart("Harmony.Autoload"); CreateSectionAtStart("Harmony.Autoload");
CreateSectionAtStart("UrbanBrawl.Autoload"); CreateSectionAtStart("UrbanBrawl.Autoload");
CreateSectionAtStart("Chex3.Autoload"); CreateSectionAtStart("Chex3.Autoload");
CreateSectionAtStart("Chex1.Autoload"); CreateSectionAtStart("Chex1.Autoload");
CreateSectionAtStart("Chex.Autoload"); CreateSectionAtStart("Chex.Autoload");
CreateSectionAtStart("Strife.Autoload"); CreateSectionAtStart("Strife.Autoload");
CreateSectionAtStart("HexenDK.Autoload"); CreateSectionAtStart("HexenDK.Autoload");
CreateSectionAtStart("Hexen.Autoload"); CreateSectionAtStart("Hexen.Autoload");
CreateSectionAtStart("HereticSR.Autoload"); CreateSectionAtStart("HereticSR.Autoload");
CreateSectionAtStart("Heretic.Autoload"); CreateSectionAtStart("Heretic.Autoload");
CreateSectionAtStart("FreeDM.Autoload"); CreateSectionAtStart("FreeDM.Autoload");
CreateSectionAtStart("Freedoom2.Autoload"); CreateSectionAtStart("Freedoom2.Autoload");
CreateSectionAtStart("Freedoom1.Autoload"); CreateSectionAtStart("Freedoom1.Autoload");
CreateSectionAtStart("Freedoom.Autoload"); CreateSectionAtStart("Freedoom.Autoload");
CreateSectionAtStart("Plutonia.Autoload"); CreateSectionAtStart("Plutonia.Autoload");
CreateSectionAtStart("TNT.Autoload"); CreateSectionAtStart("TNT.Autoload");
CreateSectionAtStart("Doom2BFG.Autoload"); CreateSectionAtStart("Doom2BFG.Autoload");
CreateSectionAtStart("Doom2.Autoload"); CreateSectionAtStart("Doom2.Autoload");
CreateSectionAtStart("DoomBFG.Autoload"); CreateSectionAtStart("DoomBFG.Autoload");
CreateSectionAtStart("DoomU.Autoload"); CreateSectionAtStart("DoomU.Autoload");
CreateSectionAtStart("Doom1.Autoload"); CreateSectionAtStart("Doom1.Autoload");
CreateSectionAtStart("Doom.Autoload"); CreateSectionAtStart("Doom.Autoload");
CreateSectionAtStart("Global.Autoload"); CreateSectionAtStart("Global.Autoload");