diff --git a/src/OpenLoco/Game.cpp b/src/OpenLoco/Game.cpp index 94879fa1..9e9b6a28 100644 --- a/src/OpenLoco/Game.cpp +++ b/src/OpenLoco/Game.cpp @@ -85,7 +85,10 @@ namespace OpenLoco::Game // 0x00441843 bool saveSaveGameOpen() { - strncpy(&_savePath[0], &_path_landscapes[0], std::size(_savePath)); + if (!isNetworked()) + strncpy(&_savePath[0], &_path_saves_single_player[0], std::size(_savePath)); + else + strncpy(&_savePath[0], &_path_saves_two_player[0], std::size(_savePath)); return openBrowsePrompt(StringIds::title_prompt_save_game, browse_type::save, S5::filterSV5); } diff --git a/src/OpenLoco/Windows/ToolbarTop.cpp b/src/OpenLoco/Windows/ToolbarTop.cpp index ab852116..ff39e247 100644 --- a/src/OpenLoco/Windows/ToolbarTop.cpp +++ b/src/OpenLoco/Windows/ToolbarTop.cpp @@ -2,6 +2,7 @@ #include "../CompanyManager.h" #include "../Config.h" #include "../Entities/EntityManager.h" +#include "../Game.h" #include "../GameCommands/GameCommands.h" #include "../Graphics/Colour.h" #include "../Graphics/Gfx.h" @@ -131,14 +132,6 @@ namespace OpenLoco::Ui::Windows::ToolbarTop::Game Dropdown::setHighlightedItem(1); } - // 0x00441843 - static bool saveGameOpen() - { - registers regs; - call(0x00441843, regs); - return regs.eax; - } - // 0x0043B1C4 static void prepareSaveGame() { @@ -154,7 +147,7 @@ namespace OpenLoco::Ui::Windows::ToolbarTop::Game return; } - if (!saveGameOpen()) + if (!OpenLoco::Game::saveSaveGameOpen()) { // Cancelled by user Gfx::invalidateScreen();