aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcConfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alcConfig.c')
-rw-r--r--Alc/alcConfig.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c
index b6a28a6e..de69ad87 100644
--- a/Alc/alcConfig.c
+++ b/Alc/alcConfig.c
@@ -202,7 +202,14 @@ void ReadALConfig(void)
#ifdef _WIN32
#else
- f = fopen("/etc/openal/config", "r");
+ f = fopen("/etc/openal/alsoft.conf", "r");
+ if(!f)
+ {
+ f = fopen("/etc/openal/config", "r");
+ if(f)
+ AL_PRINT("Reading /etc/openal/config; this file is deprecated\n"
+ "\tPlease rename it to /etc/openal/alsoft.conf\n");
+ }
if(f)
{
LoadConfigFromFile(f);
@@ -210,8 +217,16 @@ void ReadALConfig(void)
}
if(getenv("HOME") && *(getenv("HOME")))
{
- snprintf(buffer, sizeof(buffer), "%s/.openalrc", getenv("HOME"));
+ snprintf(buffer, sizeof(buffer), "%s/.alsoftrc", getenv("HOME"));
f = fopen(buffer, "r");
+ if(!f)
+ {
+ snprintf(buffer, sizeof(buffer), "%s/.openalrc", getenv("HOME"));
+ f = fopen(buffer, "r");
+ if(f)
+ AL_PRINT("Reading ~/.openalrc; this file is deprecated\n"
+ "\tPlease rename it to ~/.alsoftrc\n");
+ }
if(f)
{
LoadConfigFromFile(f);