| 255 | } |
| 256 | |
| 257 | static void AfterLoadCleanup(bool loadedFromSave) |
| 258 | { |
| 259 | ClearMapForEditing(loadedFromSave); |
| 260 | |
| 261 | // TODO: replace with dedicated scene |
| 262 | auto* sceneMgr = GetContext()->GetSceneManager(); |
| 263 | sceneMgr->setActiveScene(sceneMgr->getGameScene()); |
| 264 | |
| 265 | getGameState().editorStep = Editor::Step::landscapeEditor; |
| 266 | gScreenAge = 0; |
| 267 | gLegacyScene = LegacyScene::scenarioEditor; |
| 268 | ContextResetSubsystems(); |
| 269 | OpenEditorWindows(); |
| 270 | FinaliseMainView(); |
| 271 | |
| 272 | GameLoadScripts(); |
| 273 | GameNotifyMapChanged(); |
| 274 | } |
| 275 | |
| 276 | bool LoadLandscape(const utf8* path) |
| 277 | { |
no test coverage detected