| 1119 | } |
| 1120 | |
| 1121 | static 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 | |
| 1134 | void Player::LoadSavegame(const std::string& save_name, int save_id) { |
| 1135 | Output::Debug("Loading Save {}", save_name); |