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

Function LoadTheme

src/openrct2-ui/interface/Theme.cpp:604–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602 }
603
604 static void LoadTheme(UITheme* theme)
605 {
606 if (CurrentTheme == theme)
607 {
608 return;
609 }
610
611 if (CurrentTheme != nullptr)
612 {
613 if (!(CurrentTheme->Flags & UITHEME_FLAG_PREDEFINED))
614 {
615 delete CurrentTheme;
616 }
617 }
618
619 CurrentTheme = theme;
620 CurrentThemePath.clear();
621
622 GfxInvalidateScreen();
623 }
624
625 static void LoadTheme(const std::string& path)
626 {

Callers 5

LoadThemeByConfigNameFunction · 0.85
InitialiseFunction · 0.85
ThemeDuplicateFunction · 0.85
ThemeDeleteFunction · 0.85

Calls 3

GfxInvalidateScreenFunction · 0.85
FromFileFunction · 0.85
clearMethod · 0.65

Tested by

no test coverage detected