1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-30 17:27:57 +00:00

find_file to find files in HYPERPATH

This commit is contained in:
Zeno Rogue
2022-08-26 12:23:58 +02:00
parent 7be773ea03
commit 31b2bd9690
4 changed files with 21 additions and 4 deletions

View File

@@ -207,7 +207,7 @@ EX bool loadMusicInfo() {
#endif
#ifdef FHS
|| loadMusicInfo("/usr/share/hyperrogue/hyperrogue-music.txt")
|| loadMusicInfo(s0 + getenv("HOME") + "/.hyperrogue-music.txt")
|| (getenv("HOME") && loadMusicInfo(s0 + getenv("HOME") + "/.hyperrogue-music.txt"))
#endif
;
}