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

Function ObjectLoadErrorOpen

src/openrct2-ui/windows/ObjectLoadError.cpp:575–588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573 };
574
575 WindowBase* ObjectLoadErrorOpen(utf8* path, size_t numMissingObjects, const ObjectEntryDescriptor* missingObjects)
576 {
577 // Check if window is already open
578 auto* windowMgr = GetWindowManager();
579 auto* window = windowMgr->BringToFrontByClass(WindowClass::objectLoadError);
580 if (window == nullptr)
581 {
582 window = windowMgr->Create<ObjectLoadErrorWindow>(WindowClass::objectLoadError, kWindowSize, {});
583 }
584
585 static_cast<ObjectLoadErrorWindow*>(window)->initialise(path, numMissingObjects, missingObjects);
586
587 return window;
588 }
589} // namespace OpenRCT2::Ui::Windows

Callers 1

OpenIntentMethod · 0.85

Calls 3

GetWindowManagerFunction · 0.85
BringToFrontByClassMethod · 0.45
initialiseMethod · 0.45

Tested by

no test coverage detected