Removed the setting 'Preload gamelists on startup'.

This commit is contained in:
Leon Styhre 2022-04-20 22:39:27 +02:00
parent 06f6840038
commit defbbfd13f
3 changed files with 1 additions and 17 deletions

View file

@ -1161,17 +1161,6 @@ void GuiMenu::openOtherOptions()
}
});
// Whether to preload the gamelists on application startup.
auto preloadGamelists = std::make_shared<SwitchComponent>();
preloadGamelists->setState(Settings::getInstance()->getBool("PreloadGamelists"));
s->addWithLabel("PRELOAD GAMELISTS ON STARTUP", preloadGamelists);
s->addSaveFunc([preloadGamelists, s] {
if (preloadGamelists->getState() != Settings::getInstance()->getBool("PreloadGamelists")) {
Settings::getInstance()->setBool("PreloadGamelists", preloadGamelists->getState());
s->setNeedsSaving();
}
});
// Whether to enable alternative emulators per game (the option to disable this is intended
// primarily for testing purposes).
auto alternativeEmulatorPerGame = std::make_shared<SwitchComponent>();

View file

@ -945,11 +945,7 @@ void ViewController::preload()
std::to_string(systemCount) + ")");
}
(*it)->getIndex()->resetFilters();
if (Settings::getInstance()->getBool("PreloadGamelists"))
getGamelistView(*it)->preloadGamelist();
else
getGamelistView(*it);
getGamelistView(*it)->preloadGamelist();
}
// Load navigation sounds, either from the theme if it supports it, or otherwise from

View file

@ -233,7 +233,6 @@ void Settings::setDefaults()
mBoolMap["VideoHardwareDecoding"] = {false, false};
#endif
mBoolMap["VideoUpscaleFrameRate"] = {false, false};
mBoolMap["PreloadGamelists"] = {true, true};
mBoolMap["AlternativeEmulatorPerGame"] = {true, true};
mBoolMap["ShowHiddenFiles"] = {true, true};
mBoolMap["ShowHiddenGames"] = {true, true};