* * rct2: 0x00672957 */
| 183 | * rct2: 0x00672957 |
| 184 | */ |
| 185 | void LoadTrackDesigner() |
| 186 | { |
| 187 | // TODO: replace with dedicated scene |
| 188 | auto* sceneMgr = GetContext()->GetSceneManager(); |
| 189 | sceneMgr->setActiveScene(sceneMgr->getGameScene()); |
| 190 | |
| 191 | Audio::StopAll(); |
| 192 | gLegacyScene = LegacyScene::trackDesigner; |
| 193 | gScreenAge = 0; |
| 194 | |
| 195 | auto& gameState = getGameState(); |
| 196 | gameStateInitAll(gameState, kDefaultMapSize); |
| 197 | gameState.editorStep = Editor::Step::objectSelection; |
| 198 | SetAllLandOwned(); |
| 199 | ObjectListLoad(); |
| 200 | ContextResetSubsystems(); |
| 201 | WindowBase* mainWindow = OpenEditorWindows(); |
| 202 | mainWindow->setViewportLocation(TileCoordsXYZ{ 75, 75, 14 }.ToCoordsXYZ()); |
| 203 | LoadPalette(); |
| 204 | |
| 205 | GameLoadScripts(); |
| 206 | GameNotifyMapChanged(); |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * |
no test coverage detected