Correctly handle saving a scenario that was loaded in unpacked form
This commit is contained in:
@@ -1762,6 +1762,7 @@ bool load_scenario_v2(fs::path file_to_load, cScenario& scenario) {
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
};
|
||||
scenario.scen_file = file_to_load;
|
||||
// From here on, we don't have to care about whether it's packed or unpacked.
|
||||
TiXmlBase::SetCondenseWhiteSpace(true); // Make sure this is enabled, because the dialog engine disables it
|
||||
{
|
||||
|
@@ -53,6 +53,8 @@ public:
|
||||
void newDirectory(std::string dname);
|
||||
std::istream& getFile(std::string fname);
|
||||
bool hasFile(std::string fname);
|
||||
std::deque<tarfile>::iterator begin() {return files.begin();}
|
||||
std::deque<tarfile>::iterator end() {return files.end();}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user