MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / saveScenarioOpen

Function saveScenarioOpen

src/OpenLoco/src/Game.cpp:84–90  ·  view source on GitHub ↗

0x004418DB

Source from the content-addressed store, hash-verified

82
83 // 0x004418DB
84 [[nodiscard]] std::optional<std::string> saveScenarioOpen()
85 {
86 auto path = Environment::getPath(Environment::PathId::scenarios) / Scenario::getOptions().scenarioName;
87 auto savePath = path.u8string() + S5::extensionSC5;
88
89 return openBrowsePrompt(savePath, StringIds::title_prompt_save_scenario, browse_type::save, S5::filterSC5);
90 }
91
92 // 0x00441993
93 [[nodiscard]] std::optional<std::string> saveLandscapeOpen()

Callers 1

goToNextStepFunction · 0.85

Calls 2

getPathFunction · 0.85
openBrowsePromptFunction · 0.85

Tested by

no test coverage detected