Try bladbase.boes first and fall back to bladbase.exs if missing

This commit is contained in:
2015-08-14 23:41:13 -04:00
parent b5300b9bfb
commit a8b5342704

View File

@@ -2913,10 +2913,13 @@ bool build_scenario() {
scenario.contact_info[0] = author;
scenario.default_ground = grass ? 2 : 0;
fs::path basePath = progDir/"Scenario Editor"/"Blades of Exile Base"/"bladbase.exs";
fs::path basePath = progDir/"Scenario Editor"/"Blades of Exile Base"/"bladbase.boes";
if(!fs::exists(basePath)) {
showError("Blades of Exile Base could not be found.");
return false;
basePath = basePath.parent_path()/"bladbase.exs";
if(!fs::exists(basePath)) {
showError("Blades of Exile Base could not be found.");
return false;
}
}
cScenario base;
load_scenario(basePath, base);