--- a/alc/alconfig.cpp +++ b/alc/alconfig.cpp @@ -426,13 +426,13 @@ void ReadALConfig() { - auto path = fs::path{"/etc/openal/alsoft.conf"}; + auto path = fs::path{"@TERMUX_PREFIX@/etc/openal/alsoft.conf"}; TRACE("Loading config {}...", al::u8_as_char(path.u8string())); if(auto f = fs::ifstream{path}; f.is_open()) LoadConfigFromFile(f); - auto confpaths = al::getenv("XDG_CONFIG_DIRS").value_or("/etc/xdg"); + auto 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