| 466 | } |
| 467 | |
| 468 | void SaveGame() |
| 469 | { |
| 470 | if (!gFirstTimeSaving && !gIsAutosaveLoaded) |
| 471 | { |
| 472 | #ifndef __EMSCRIPTEN__ |
| 473 | const auto savePath = Path::WithExtension(gScenarioSavePath, ".park"); |
| 474 | SaveGameWithName(savePath); |
| 475 | #else |
| 476 | const auto savePath = Path::WithExtension("save", ".park"); |
| 477 | SaveGameWithName(savePath); |
| 478 | EmscriptenSaveGame(false, false, LoadSaveType::park); |
| 479 | #endif |
| 480 | } |
| 481 | else |
| 482 | { |
| 483 | SaveGameAs(); |
| 484 | } |
| 485 | } |
| 486 | |
| 487 | void SaveGameCmd(u8string_view name /* = {} */) |
| 488 | { |
no test coverage detected