mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: make Subdirectory a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
93a6aa77c6
commit
5aae8e2d64
+2
-2
@@ -217,7 +217,7 @@ static void _GenerateWorld()
|
||||
|
||||
if (_debug_desync_level > 0) {
|
||||
std::string name = fmt::format("dmp_cmds_{:08x}_{:08x}.sav", _settings_game.game_creation.generation_seed, TimerGameEconomy::date);
|
||||
SaveOrLoad(name, SaveLoadOperation::Save, DetailedFileType::GameFile, AUTOSAVE_DIR, false);
|
||||
SaveOrLoad(name, SaveLoadOperation::Save, DetailedFileType::GameFile, Subdirectory::Autosave, false);
|
||||
}
|
||||
} catch (AbortGenerateWorldSignal&) {
|
||||
CleanupGeneration();
|
||||
@@ -360,7 +360,7 @@ void LoadTownData()
|
||||
{
|
||||
/* Load the JSON file as a string initially. We'll parse it soon. */
|
||||
size_t filesize;
|
||||
auto f = FioFOpenFile(_file_to_saveload.name, "rb", HEIGHTMAP_DIR, &filesize);
|
||||
auto f = FioFOpenFile(_file_to_saveload.name, "rb", Subdirectory::Heightmap, &filesize);
|
||||
|
||||
if (!f.has_value()) {
|
||||
ShowErrorMessage(GetEncodedString(STR_TOWN_DATA_ERROR_LOAD_FAILED),
|
||||
|
||||
Reference in New Issue
Block a user