From dea5a8af5b78fca19a3b18320d42c096e1247ece Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 27 Nov 2024 19:07:39 -0600 Subject: [PATCH] when replaying, find scenarios in replay test folder --- src/game/boe.fileio.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/game/boe.fileio.cpp b/src/game/boe.fileio.cpp index ef0011a8..41bdc9b4 100644 --- a/src/game/boe.fileio.cpp +++ b/src/game/boe.fileio.cpp @@ -347,7 +347,12 @@ std::vector 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{