MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / Load

Method Load

src/openrct2/scenes/preloader/PreloaderScene.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void PreloaderScene::Load()
35{
36 LOG_VERBOSE("PreloaderScene::Load()");
37
38 gLegacyScene = LegacyScene::playing;
39 gameStateInitAll(getGameState(), kDefaultMapSize);
40 ContextResetSubsystems();
41 ContextOpenWindow(WindowClass::mainWindow);
42 WindowSetFlagForAllViewports(VIEWPORT_FLAG_RENDERING_INHIBITED, true);
43 WindowResizeGui(ContextGetWidth(), ContextGetHeight());
44
45 LOG_VERBOSE("PreloaderScene::Load() finished");
46}
47
48void PreloaderScene::Tick()
49{

Callers

nothing calls this directly

Calls 7

gameStateInitAllFunction · 0.85
ContextResetSubsystemsFunction · 0.85
ContextOpenWindowFunction · 0.85
WindowResizeGuiFunction · 0.85
ContextGetWidthFunction · 0.85
ContextGetHeightFunction · 0.85

Tested by

no test coverage detected