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

Function WindowGetMain

src/openrct2/interface/Window.cpp:318–330  ·  view source on GitHub ↗

* * rct2: 0x006EE2E4 */

Source from the content-addressed store, hash-verified

316 * rct2: 0x006EE2E4
317 */
318 WindowBase* WindowGetMain()
319 {
320 for (auto& w : gWindowList)
321 {
322 if (w->flags.has(WindowFlag::dead))
323 continue;
324 if (w->classification == WindowClass::mainWindow)
325 {
326 return w.get();
327 }
328 }
329 return nullptr;
330 }
331
332 /**
333 *

Callers 15

GameLoadInitFunction · 0.85
ReplayCommandsMethod · 0.85
operator()Method · 0.85
operator()Method · 0.85
operator()Method · 0.85
GetGiantViewportFunction · 0.85
ScreenshotGiantFunction · 0.85
ViewportGetMainFunction · 0.85
ShowGridlinesFunction · 0.85

Calls 2

hasMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected