1
0
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:
Zeno Rogue
2024-07-10 00:05:30 +02:00
parent 6bbd57ecbe
commit cc3863d1fe
3 changed files with 8 additions and 24 deletions

View File

@@ -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