mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-10 22:36:02 +00:00
cleaned up paths for MUSIC, SOUND, and other
This commit is contained in:
2
util.cpp
2
util.cpp
@@ -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