Correctly handle saving a scenario that was loaded in unpacked form

This commit is contained in:
2015-02-14 13:35:26 -05:00
parent 0aaa299642
commit 7ba874f1d2
3 changed files with 17 additions and 0 deletions

View File

@@ -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
{

View File

@@ -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();}
};