From 48d50021905ff8275cf7b828213c31bd55cbe51f Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 16 Jun 2013 20:43:31 -0700 Subject: Trace config file names being loaded --- Alc/alcConfig.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Alc') 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) { -- cgit v1.2.3