diff options
author | Chris Robinson <[email protected]> | 2013-06-16 20:43:31 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-06-16 20:43:31 -0700 |
commit | 48d50021905ff8275cf7b828213c31bd55cbe51f (patch) | |
tree | 8d487d60ae683139c1a7b265cd9bc00bd602e848 /Alc/alcConfig.c | |
parent | 784e396cc7e4452faaa02caed445bccc10a15d5f (diff) |
Trace config file names being loaded
Diffstat (limited to 'Alc/alcConfig.c')
-rw-r--r-- | Alc/alcConfig.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Alc/alcConfig.c b/Alc/alcConfig.c index 5d9448b0..832a17a3 100644 --- a/Alc/alcConfig.c +++ b/Alc/alcConfig.c @@ -187,6 +187,8 @@ void ReadALConfig(void) { size_t p = strlen(buffer); snprintf(buffer+p, sizeof(buffer)-p, "\\alsoft.ini"); + + TRACE("Loading config %s...\n", buffer); f = fopen(buffer, "rt"); if(f) { @@ -195,7 +197,10 @@ void ReadALConfig(void) } } #else - f = fopen("/etc/openal/alsoft.conf", "r"); + str = "/etc/openal/alsoft.conf"; + + TRACE("Loading config %s...\n", str); + f = fopen(str, "r"); if(f) { LoadConfigFromFile(f); @@ -204,6 +209,8 @@ void ReadALConfig(void) if((str=getenv("HOME")) != NULL && *str) { snprintf(buffer, sizeof(buffer), "%s/.alsoftrc", str); + + TRACE("Loading config %s...\n", buffer); f = fopen(buffer, "r"); if(f) { @@ -214,6 +221,7 @@ void ReadALConfig(void) #endif if((str=getenv("ALSOFT_CONF")) != NULL && *str) { + TRACE("Loading config %s...\n", str); f = fopen(str, "r"); if(f) { |