mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Merge pull request #406 from Koerty/disable-random-selection-retropie
Disable random game selection in retropie settings menu
This commit is contained in:
commit
dd7f6e4a24
|
@ -151,7 +151,8 @@ std::vector<HelpPrompt> BasicGameListView::getHelpPrompts()
|
||||||
prompts.push_back(HelpPrompt("a", "launch"));
|
prompts.push_back(HelpPrompt("a", "launch"));
|
||||||
prompts.push_back(HelpPrompt("b", "back"));
|
prompts.push_back(HelpPrompt("b", "back"));
|
||||||
prompts.push_back(HelpPrompt("select", "options"));
|
prompts.push_back(HelpPrompt("select", "options"));
|
||||||
prompts.push_back(HelpPrompt("x", "random"));
|
if(mRoot->getSystem()->isGameSystem())
|
||||||
|
prompts.push_back(HelpPrompt("x", "random"));
|
||||||
if(mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid())
|
if(mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid())
|
||||||
{
|
{
|
||||||
std::string prompt = CollectionSystemManager::get()->getEditingCollection();
|
std::string prompt = CollectionSystemManager::get()->getEditingCollection();
|
||||||
|
|
|
@ -357,7 +357,8 @@ std::vector<HelpPrompt> GridGameListView::getHelpPrompts()
|
||||||
prompts.push_back(HelpPrompt("a", "launch"));
|
prompts.push_back(HelpPrompt("a", "launch"));
|
||||||
prompts.push_back(HelpPrompt("b", "back"));
|
prompts.push_back(HelpPrompt("b", "back"));
|
||||||
prompts.push_back(HelpPrompt("select", "options"));
|
prompts.push_back(HelpPrompt("select", "options"));
|
||||||
prompts.push_back(HelpPrompt("x", "random"));
|
if(mRoot->getSystem()->isGameSystem())
|
||||||
|
prompts.push_back(HelpPrompt("x", "random"));
|
||||||
if(mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid())
|
if(mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid())
|
||||||
{
|
{
|
||||||
std::string prompt = CollectionSystemManager::get()->getEditingCollection();
|
std::string prompt = CollectionSystemManager::get()->getEditingCollection();
|
||||||
|
|
|
@ -136,13 +136,16 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
}
|
}
|
||||||
}else if (config->isMappedTo("x", input))
|
}else if (config->isMappedTo("x", input))
|
||||||
{
|
{
|
||||||
// go to random system game
|
if (mRoot->getSystem()->isGameSystem())
|
||||||
FileData* randomGame = getCursor()->getSystem()->getRandomGame();
|
|
||||||
if (randomGame)
|
|
||||||
{
|
{
|
||||||
setCursor(randomGame);
|
// go to random system game
|
||||||
|
FileData* randomGame = getCursor()->getSystem()->getRandomGame();
|
||||||
|
if (randomGame)
|
||||||
|
{
|
||||||
|
setCursor(randomGame);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}else if (config->isMappedTo("y", input) && !(UIModeController::getInstance()->isUIModeKid()))
|
}else if (config->isMappedTo("y", input) && !(UIModeController::getInstance()->isUIModeKid()))
|
||||||
{
|
{
|
||||||
if(mRoot->getSystem()->isGameSystem())
|
if(mRoot->getSystem()->isGameSystem())
|
||||||
|
|
Loading…
Reference in a new issue