mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 00:12:49 +02:00
Fixed fileexists checking order bug in configurator
This commit is contained in:
@@ -29,11 +29,10 @@ void Configuration::load(const string &path){
|
||||
if(fileExists(path) == false) {
|
||||
throw runtime_error("Cannot find file: " + path);
|
||||
}
|
||||
else if(fileExists(fileName) == false) {
|
||||
loadStructure(path);
|
||||
if(fileExists(fileName) == false) {
|
||||
throw runtime_error("Cannot find file: " + fileName);
|
||||
}
|
||||
|
||||
loadStructure(path);
|
||||
loadValues(fileName);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user