diff --git a/src/openrct2-ui/windows/LoadSave.cpp b/src/openrct2-ui/windows/LoadSave.cpp index 5cbf3319ad..d9e02cd177 100644 --- a/src/openrct2-ui/windows/LoadSave.cpp +++ b/src/openrct2-ui/windows/LoadSave.cpp @@ -349,8 +349,8 @@ static bool Browse(bool isSave, char* path, size_t pathSize) switch (_type & 0x0E) { case LOADSAVETYPE_GAME: - extension = ".sv6"; - fileType = FILE_EXTENSION_SV6; + extension = ".park"; + fileType = FILE_EXTENSION_PARK; title = isSave ? STR_FILE_DIALOG_TITLE_SAVE_GAME : STR_FILE_DIALOG_TITLE_LOAD_GAME; desc.filters[0].name = language_get_string(STR_OPENRCT2_SAVED_GAME); desc.filters[0].pattern = GetFilterPatternByType(_type, isSave); diff --git a/src/openrct2/Game.cpp b/src/openrct2/Game.cpp index a15f82c21c..2cee33cce6 100644 --- a/src/openrct2/Game.cpp +++ b/src/openrct2/Game.cpp @@ -532,7 +532,12 @@ void save_game() { if (!gFirstTimeSaving) { - save_game_with_name(gScenarioSavePath.c_str()); + char savePath[MAX_PATH]; + safe_strcpy(savePath, gScenarioSavePath.c_str(), MAX_PATH); + path_remove_extension(savePath); + path_append_extension(savePath, ".park", MAX_PATH); + + save_game_with_name(savePath); } else { @@ -544,7 +549,12 @@ void save_game_cmd(const utf8* name /* = nullptr */) { if (name == nullptr) { - save_game_with_name(gScenarioSavePath.c_str()); + char savePath[MAX_PATH]; + safe_strcpy(savePath, gScenarioSavePath.c_str(), MAX_PATH); + path_remove_extension(savePath); + path_append_extension(savePath, ".park", MAX_PATH); + + save_game_with_name(savePath); } else { diff --git a/src/openrct2/interface/InteractiveConsole.cpp b/src/openrct2/interface/InteractiveConsole.cpp index 55799f5b05..723276f98e 100644 --- a/src/openrct2/interface/InteractiveConsole.cpp +++ b/src/openrct2/interface/InteractiveConsole.cpp @@ -1365,9 +1365,10 @@ static int32_t cc_load_park([[maybe_unused]] InteractiveConsole& console, [[mayb { safe_strcpy(savePath, argv[0].c_str(), sizeof(savePath)); } - if (!String::EndsWith(savePath, ".sv6", true) && !String::EndsWith(savePath, ".sc6", true)) + if (!String::EndsWith(savePath, ".sv6", true) && !String::EndsWith(savePath, ".sc6", true) + && !String::EndsWith(savePath, ".park", true)) { - path_append_extension(savePath, ".sv6", sizeof(savePath)); + path_append_extension(savePath, ".park", sizeof(savePath)); } if (context_load_park_from_file(savePath)) {