Fix Windows build

This commit is contained in:
2015-09-13 00:16:00 -04:00
parent 853c270146
commit 840587d765
2 changed files with 2 additions and 3 deletions

View File

@@ -460,7 +460,7 @@ void start_data_dump() {
}
}
extern const fs::path scenDir;
extern fs::path scenDir;
fs::path locate_scenario(std::string scen_name) {
fs::create_directories(scenDir);
std::transform(scen_name.begin(), scen_name.end(), scen_name.begin(), tolower);

View File

@@ -933,7 +933,7 @@ struct overrides_sheet {
};
extern std::string scenario_temp_dir_name;
extern const fs::path scenDir;
extern fs::path scenDir;
void save_scenario(bool rename) {
fs::path toFile = scenario.scen_file;
if(rename || toFile.empty()) {
@@ -945,7 +945,6 @@ void save_scenario(bool rename) {
}
scenario.reset_version();
// TODO: This is just a skeletal outline of what needs to be done to save the scenario
tarball scen_file;
{
// First, write out the scenario header data. This is in a binary format identical to older scenarios.