--- a/alc/alconfig.cpp +++ b/alc/alconfig.cpp @@ -381,13 +381,13 @@ void ReadALConfig() void ReadALConfig() { - fs::path path{"/etc/openal/alsoft.conf"}; + fs::path path{"@TERMUX_PREFIX@/etc/openal/alsoft.conf"}; TRACE("Loading config {}...", al::u8_as_char(path.u8string())); if(fs::ifstream f{path}; f.is_open()) LoadConfigFromFile(f); - std::string confpaths{al::getenv("XDG_CONFIG_DIRS").value_or("/etc/xdg")}; + std::string confpaths{al::getenv("XDG_CONFIG_DIRS").value_or("@TERMUX_PREFIX@/etc/xdg")}; /* Go through the list in reverse, since "the order of base directories * denotes their importance; the first directory listed is the most * important". Ergo, we need to load the settings from the later dirs