From b4fe164192cb5eec9d8830d6c4e5aa1d666b86f0 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Mon, 19 Jul 2021 17:29:19 +0600 Subject: [PATCH] Search $HOME/.local/share/games/doom directory... ...for soundfonts, IWADs and WAD files. This partially matches Chocolate Doom behaviour. --- src/gameconfigfile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gameconfigfile.cpp b/src/gameconfigfile.cpp index 76bf0fc4cf..830cef2325 100644 --- a/src/gameconfigfile.cpp +++ b/src/gameconfigfile.cpp @@ -115,6 +115,7 @@ FGameConfigFile::FGameConfigFile () SetValueForKey ("Path", "$PROGDIR", true); #else SetValueForKey ("Path", "$HOME/" GAME_DIR, true); + SetValueForKey ("Path", "$HOME/.local/share/games/doom", 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 @@ -138,6 +139,7 @@ FGameConfigFile::FGameConfigFile () SetValueForKey ("Path", "$PROGDIR", true); #else SetValueForKey ("Path", "$HOME/" GAME_DIR, true); + SetValueForKey ("Path", "$HOME/.local/share/games/doom", true); SetValueForKey ("Path", SHARE_DIR, true); SetValueForKey ("Path", "/usr/local/share/doom", true); SetValueForKey ("Path", "/usr/local/share/games/doom", true); @@ -166,6 +168,8 @@ FGameConfigFile::FGameConfigFile () #else SetValueForKey("Path", "$HOME/" GAME_DIR "/soundfonts", 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/fm_banks", true); SetValueForKey("Path", "/usr/local/share/games/doom/soundfonts", true);