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;
|
||||
while(std::getline(in, scen_file)){
|
||||
scen_header_type scen_head;
|
||||
fs::path full_path;
|
||||
for(fs::path scenDir : all_scen_dirs()){
|
||||
full_path = scenDir / scen_file;
|
||||
if (fs::exists(full_path))
|
||||
break;
|
||||
fs::path full_path = locate_scenario(scen_file, true);
|
||||
if(full_path.empty()){
|
||||
LOG("Scenario missing! " + scen_file);
|
||||
}
|
||||
if(load_scenario_header(full_path, scen_head)){
|
||||
scen_headers.push_back(scen_head);
|
||||
|
Reference in New Issue
Block a user