MCPcopy Create free account
hub / github.com/EasyRPG/Player / OnMapSaveFileReady

Function OnMapSaveFileReady

src/player.cpp:1121–1132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119}
1120
1121static void OnMapSaveFileReady(FileRequestResult*, lcf::rpg::Save save) {
1122 auto map = Game_Map::LoadMapFile(Main_Data::game_player->GetMapId());
1123 Game_Map::SetupFromSave(
1124 std::move(map),
1125 std::move(save.map_info),
1126 std::move(save.boat_location),
1127 std::move(save.ship_location),
1128 std::move(save.airship_location),
1129 std::move(save.foreground_event_execstate),
1130 std::move(save.panorama),
1131 std::move(save.common_events));
1132}
1133
1134void Player::LoadSavegame(const std::string& save_name, int save_id) {
1135 Output::Debug("Loading Save {}", save_name);

Callers 1

LoadSavegameMethod · 0.85

Calls 1

GetMapIdMethod · 0.45

Tested by

no test coverage detected