Fix replaying scenario list with recursive scenario folder structure
This commit is contained in:
@@ -361,11 +361,9 @@ std::vector<scen_header_type> build_scen_headers() {
|
|||||||
std::string scen_file;
|
std::string scen_file;
|
||||||
while(std::getline(in, scen_file)){
|
while(std::getline(in, scen_file)){
|
||||||
scen_header_type scen_head;
|
scen_header_type scen_head;
|
||||||
fs::path full_path;
|
fs::path full_path = locate_scenario(scen_file, true);
|
||||||
for(fs::path scenDir : all_scen_dirs()){
|
if(full_path.empty()){
|
||||||
full_path = scenDir / scen_file;
|
LOG("Scenario missing! " + scen_file);
|
||||||
if (fs::exists(full_path))
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if(load_scenario_header(full_path, scen_head)){
|
if(load_scenario_header(full_path, scen_head)){
|
||||||
scen_headers.push_back(scen_head);
|
scen_headers.push_back(scen_head);
|
||||||
|
Reference in New Issue
Block a user