mirror of
https://github.com/glest/glest-source.git
synced 2025-08-23 08:22:50 +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) {
|
if(fileExists(path) == false) {
|
||||||
throw runtime_error("Cannot find file: " + path);
|
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);
|
throw runtime_error("Cannot find file: " + fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
loadStructure(path);
|
|
||||||
loadValues(fileName);
|
loadValues(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user