0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-01-06 03:46:41 +00:00
termux-packages/packages/openal-soft/alc-alconfig.cpp.patch
Biswapriyo Nath 66cf93bcf2 bump(main/openal-soft): 1.24.1
Rebase alc-alconfig.cpp.patch after the following upstream commit.
a2085cc745
2024-11-29 00:16:07 +05:30

19 lines
812 B
Diff

--- a/alc/alconfig.cpp
+++ b/alc/alconfig.cpp
@@ -384,13 +384,13 @@
void ReadALConfig()
{
namespace fs = std::filesystem;
- fs::path path{"/etc/openal/alsoft.conf"};
+ fs::path path{"@TERMUX_PREFIX@/etc/openal/alsoft.conf"};
TRACE("Loading config %s...\n", reinterpret_cast<const char*>(path.u8string().c_str()));
if(std::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