115c115
< void ConfigManager::loadFile(const String &filename) {
---
> void ConfigManager::loadFile(const String &filenamearg) {
116a117,125
> 	String filename(filenamearg);
> 
> 	// Try to open config file in preferred location first, but fallback to current directory on failure
> 	if ((filename != DEFAULT_CONFIG_FILE) && !(cfg_file = fopen(filename.c_str(), "r"))) {
> 		warning("Unable to open configuration file: %s", filename.c_str());
> 		warning("Checkng current directory instead...");
> 
> 		filename = DEFAULT_CONFIG_FILE;
> 	}
