mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-25 10:24:26 +00:00
cleaned up paths for MUSIC, SOUND, and other
This commit is contained in:
1 parent
6bbd57ecbe
commit
cc3863d1fe
3 files changed
+8
-24
No files matched your search
@@ -975,7 +975,9 @@ EX string find_file(string s) {
|
||||
if(file_exists(s)) return s;
|
||||
char *p = getenv("HYPERPATH");
|
||||
if(p && file_exists(s1 = s0 + p + s)) return s1;
|
||||
#ifdef HYPERPATH
|
||||
if(file_exists(s1 = HYPERPATH + s)) return s1;
|
||||
#endif
|
||||
#ifdef FHS
|
||||
if(file_exists(s1 = "/usr/share/hyperrogue/" + s)) return s1;
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user