diff --git a/util.cpp b/util.cpp index 862e1a5c..59158c8c 100644 --- a/util.cpp +++ b/util.cpp @@ -1050,6 +1050,13 @@ EX string find_file(string s) { #endif #ifdef FHS if(file_exists(s1 = "/usr/share/hyperrogue/" + s)) return s1; +#endif +#if SDLVER >= 2 + char *path = SDL_GetBasePath(); + if(path) { + string bpath = path; + if(file_exists(s1 = bpath + s)) return s1; + } #endif return s; }