| 479 | } |
| 480 | |
| 481 | void 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 | |
| 502 | void ViewController::reloadGameListView(IGameListView* view, bool reloadTheme) { |
| 503 | for(auto it = mGameListViews.cbegin(); it != mGameListViews.cend(); it++) { |
no test coverage detected