global vector for extra scenario directories
This commit is contained in:
@@ -18,6 +18,8 @@
|
||||
class cScenario;
|
||||
class cUniverse;
|
||||
|
||||
extern std::vector<fs::path> extra_scen_dirs;
|
||||
|
||||
std::vector<fs::path> all_scen_dirs();
|
||||
fs::path locate_scenario(std::string scen_name);
|
||||
bool load_scenario(fs::path file_to_load, cScenario& scenario, bool only_header = false);
|
||||
|
@@ -71,6 +71,10 @@ static std::string get_file_error() {
|
||||
std::vector<fs::path> all_scen_dirs() {
|
||||
std::vector<fs::path> scen_dirs = { scenDir };
|
||||
|
||||
for(fs::path scen_dir : extra_scen_dirs){
|
||||
scen_dirs.push_back(scen_dir);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
fs::path replay_scenarios_dir = boost::filesystem::current_path();
|
||||
replay_scenarios_dir = replay_scenarios_dir/".."/".."/"test"/"replays"/"scenarios";
|
||||
|
Reference in New Issue
Block a user