mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 20:12:42 +00:00
Codechange: make Subdirectory a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
93a6aa77c6
commit
5aae8e2d64
+2
-2
@@ -192,7 +192,7 @@ bool CrashLog::WriteCrashLog()
|
||||
{
|
||||
this->crashlog_filename = this->CreateFileName(".json.log");
|
||||
|
||||
auto file = FioFOpenFile(this->crashlog_filename, "w", NO_DIRECTORY);
|
||||
auto file = FioFOpenFile(this->crashlog_filename, "w", Subdirectory::None);
|
||||
if (!file.has_value()) return false;
|
||||
|
||||
std::string survey_json = this->survey.dump(4);
|
||||
@@ -232,7 +232,7 @@ bool CrashLog::WriteSavegame()
|
||||
this->savegame_filename = this->CreateFileName(".sav");
|
||||
|
||||
/* Don't do a threaded saveload. */
|
||||
return SaveOrLoad(this->savegame_filename, SaveLoadOperation::Save, DetailedFileType::GameFile, NO_DIRECTORY, false) == SL_OK;
|
||||
return SaveOrLoad(this->savegame_filename, SaveLoadOperation::Save, DetailedFileType::GameFile, Subdirectory::None, false) == SL_OK;
|
||||
} catch (...) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user