MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / preload

Method preload

src/server/gui/app/views/ViewController.cpp:481–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481void ViewController::preload()
482{
483 int i = 1;
484 int max = SystemData::sSystemVector.size() + 1;
485
486 bool splash = Settings::getInstance()->getBool("SplashScreen") && Settings::getInstance()->getBool("SplashScreenProgress");
487 if (splash) {
488 mWindow->renderLoadingScreen("Preloading UI", (float)i / (float)max);
489 }
490
491 for(auto it = SystemData::sSystemVector.cbegin(); it != SystemData::sSystemVector.cend(); it++) {
492 if (splash) {
493 i++;
494 mWindow->renderLoadingScreen("Preloading UI", (float)i / (float)max);
495 }
496
497 (*it)->getIndex()->resetFilters();
498 getGameListView(*it);
499 }
500}
501
502void ViewController::reloadGameListView(IGameListView* view, bool reloadTheme) {
503 for(auto it = mGameListViews.cbegin(); it != mGameListViews.cend(); it++) {

Callers 1

startMethod · 0.80

Calls 4

renderLoadingScreenMethod · 0.80
resetFiltersMethod · 0.80
getIndexMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected