when replaying, find scenarios in replay test folder

This commit is contained in:
2024-11-27 19:07:39 -06:00
committed by Celtic Minstrel
parent 3de10ec741
commit dea5a8af5b

View File

@@ -347,7 +347,12 @@ 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 = scenDir / scen_file;
fs::path full_path;
for(fs::path scenDir : all_scen_dirs()){
full_path = scenDir / scen_file;
if (fs::exists(full_path))
break;
}
if(load_scenario_header(full_path, scen_head)){
scen_headers.push_back(scen_head);
}else{