diff options
author | Chris Robinson <[email protected]> | 2008-11-13 07:58:39 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-11-13 07:58:39 -0800 |
commit | 670d70d3c904aca81394649933c7cea1d8313368 (patch) | |
tree | 8745613e1a2ed527340b254351d5140920fc04f8 /Alc | |
parent | 010f7d12f48f8e046dcda4a5e39221265554e2ff (diff) |
Allow specifying another config file with the ALSOFT_CONF env var
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/alcConfig.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c index d5f4fb5e..6b959709 100644 --- a/Alc/alcConfig.c +++ b/Alc/alcConfig.c @@ -250,6 +250,15 @@ void ReadALConfig(void) } } #endif + if(getenv("ALSOFT_CONF")) + { + f = fopen(getenv("ALSOFT_CONF"), "r"); + if(f) + { + LoadConfigFromFile(f); + fclose(f); + } + } } void FreeALConfig(void) |