MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / CreateSaveGameAsIntent

Function CreateSaveGameAsIntent

src/openrct2/Game.cpp:517–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517std::unique_ptr<Intent> CreateSaveGameAsIntent()
518{
519 auto name = Path::GetFileNameWithoutExtension(gScenarioSavePath);
520
521 auto intent = std::make_unique<Intent>(WindowClass::loadsave);
522 intent->PutEnumExtra<LoadSaveAction>(INTENT_EXTRA_LOADSAVE_ACTION, LoadSaveAction::save);
523 intent->PutEnumExtra<LoadSaveType>(INTENT_EXTRA_LOADSAVE_TYPE, LoadSaveType::park);
524 intent->PutExtra(INTENT_EXTRA_PATH, name);
525
526 return intent;
527}
528
529void SaveGameAs()
530{

Callers 2

SaveGameAsFunction · 0.85
onMouseUpMethod · 0.85

Calls 2

PutExtraMethod · 0.45

Tested by

no test coverage detected