Search $HOME/.local/share/games/doom directory...

...for soundfonts, IWADs and WAD files.

This partially matches Chocolate Doom behaviour.
This commit is contained in:
Cacodemon345 2021-07-19 17:29:19 +06:00 committed by Rachael Alexanderson
parent 8ac8e31a61
commit b4fe164192
1 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,7 @@ FGameConfigFile::FGameConfigFile ()
SetValueForKey ("Path", "$PROGDIR", true); SetValueForKey ("Path", "$PROGDIR", true);
#else #else
SetValueForKey ("Path", "$HOME/" GAME_DIR, true); SetValueForKey ("Path", "$HOME/" GAME_DIR, true);
SetValueForKey ("Path", "$HOME/.local/share/games/doom", true);
// Arch Linux likes them in /usr/share/doom // Arch Linux likes them in /usr/share/doom
// Debian likes them in /usr/share/games/doom // Debian likes them in /usr/share/games/doom
// I assume other distributions don't do anything radically different // I assume other distributions don't do anything radically different
@ -138,6 +139,7 @@ FGameConfigFile::FGameConfigFile ()
SetValueForKey ("Path", "$PROGDIR", true); SetValueForKey ("Path", "$PROGDIR", true);
#else #else
SetValueForKey ("Path", "$HOME/" GAME_DIR, true); SetValueForKey ("Path", "$HOME/" GAME_DIR, true);
SetValueForKey ("Path", "$HOME/.local/share/games/doom", true);
SetValueForKey ("Path", SHARE_DIR, true); SetValueForKey ("Path", SHARE_DIR, true);
SetValueForKey ("Path", "/usr/local/share/doom", true); SetValueForKey ("Path", "/usr/local/share/doom", true);
SetValueForKey ("Path", "/usr/local/share/games/doom", true); SetValueForKey ("Path", "/usr/local/share/games/doom", true);
@ -166,6 +168,8 @@ FGameConfigFile::FGameConfigFile ()
#else #else
SetValueForKey("Path", "$HOME/" GAME_DIR "/soundfonts", true); SetValueForKey("Path", "$HOME/" GAME_DIR "/soundfonts", true);
SetValueForKey("Path", "$HOME/" GAME_DIR "/fm_banks", true); SetValueForKey("Path", "$HOME/" GAME_DIR "/fm_banks", true);
SetValueForKey("Path", "$HOME/.local/share/games/doom/soundfonts", true);
SetValueForKey("Path", "$HOME/.local/share/games/doom/fm_banks", true);
SetValueForKey("Path", "/usr/local/share/doom/soundfonts", true); SetValueForKey("Path", "/usr/local/share/doom/soundfonts", true);
SetValueForKey("Path", "/usr/local/share/doom/fm_banks", true); SetValueForKey("Path", "/usr/local/share/doom/fm_banks", true);
SetValueForKey("Path", "/usr/local/share/games/doom/soundfonts", true); SetValueForKey("Path", "/usr/local/share/games/doom/soundfonts", true);