diff options
author | Chris Robinson <[email protected]> | 2008-01-19 18:18:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2008-01-19 18:18:14 -0800 |
commit | 799ba1f9541c1310186805bd3e276eb9fc708ca2 (patch) | |
tree | 9551e6dbe06d93e97d306208707080c2207b8548 /Alc/alcConfig.c | |
parent | 1a3e39e4528a09a0dde5f0816ad14580738e22b1 (diff) |
Use less ambiguous config file names
Diffstat (limited to 'Alc/alcConfig.c')
-rw-r--r-- | Alc/alcConfig.c | 19 |
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); |