summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-11-13 07:58:39 -0800
committerChris Robinson <[email protected]>2008-11-13 07:58:39 -0800
commit670d70d3c904aca81394649933c7cea1d8313368 (patch)
tree8745613e1a2ed527340b254351d5140920fc04f8 /Alc
parent010f7d12f48f8e046dcda4a5e39221265554e2ff (diff)
Allow specifying another config file with the ALSOFT_CONF env var
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcConfig.c9
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)