mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
Search more paths in SHARE_DIR (#2610)
* Search more paths in SHARE_DIR Makes it more compatible with more exotic systems such as Guix or NixOS. (one day we'll have a gzdoom without patches) * Make more places search in SHARE_DIR. --------- Co-authored-by: Rachael Alexanderson <18584402+madame-rachelle@users.noreply.github.com>
This commit is contained in:
parent
a4c98d8dd9
commit
5cc718ec77
1 changed files with 9 additions and 0 deletions
|
@ -125,6 +125,9 @@ FGameConfigFile::FGameConfigFile ()
|
|||
SetValueForKey ("Path", "/usr/local/share/games/doom", true);
|
||||
SetValueForKey ("Path", "/usr/share/doom", true);
|
||||
SetValueForKey ("Path", "/usr/share/games/doom", true);
|
||||
SetValueForKey ("Path", SHARE_DIR "/doom", true);
|
||||
SetValueForKey ("Path", SHARE_DIR "/games/doom", true);
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -143,6 +146,8 @@ FGameConfigFile::FGameConfigFile ()
|
|||
SetValueForKey ("Path", "$HOME/" GAME_DIR, true);
|
||||
SetValueForKey ("Path", "$HOME/.local/share/games/doom", true);
|
||||
SetValueForKey ("Path", SHARE_DIR, true);
|
||||
SetValueForKey ("Path", SHARE_DIR "/doom", true);
|
||||
SetValueForKey ("Path", SHARE_DIR "/games/doom", true);
|
||||
SetValueForKey ("Path", "/usr/local/share/doom", true);
|
||||
SetValueForKey ("Path", "/usr/local/share/games/doom", true);
|
||||
SetValueForKey ("Path", "/usr/share/doom", true);
|
||||
|
@ -180,6 +185,10 @@ FGameConfigFile::FGameConfigFile ()
|
|||
SetValueForKey("Path", "/usr/share/doom/fm_banks", true);
|
||||
SetValueForKey("Path", "/usr/share/games/doom/soundfonts", true);
|
||||
SetValueForKey("Path", "/usr/share/games/doom/fm_banks", true);
|
||||
SetValueForKey("Path", SHARE_DIR "/doom/soundfonts", true);
|
||||
SetValueForKey("Path", SHARE_DIR "/doom/fm_banks", true);
|
||||
SetValueForKey("Path", SHARE_DIR "/games/doom/soundfonts", true);
|
||||
SetValueForKey("Path", SHARE_DIR "/games/doom/fm_banks", true);
|
||||
SetValueForKey("Path", "/usr/share/soundfonts", true);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue