mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Disable random game selection in retropie settings menu
This commit is contained in:
parent
61da776b71
commit
24c8a910e2
|
@ -151,6 +151,7 @@ std::vector<HelpPrompt> BasicGameListView::getHelpPrompts()
|
|||
prompts.push_back(HelpPrompt("a", "launch"));
|
||||
prompts.push_back(HelpPrompt("b", "back"));
|
||||
prompts.push_back(HelpPrompt("select", "options"));
|
||||
if(mRoot->getSystem()->isGameSystem())
|
||||
prompts.push_back(HelpPrompt("x", "random"));
|
||||
if(mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid())
|
||||
{
|
||||
|
|
|
@ -357,6 +357,7 @@ std::vector<HelpPrompt> GridGameListView::getHelpPrompts()
|
|||
prompts.push_back(HelpPrompt("a", "launch"));
|
||||
prompts.push_back(HelpPrompt("b", "back"));
|
||||
prompts.push_back(HelpPrompt("select", "options"));
|
||||
if(mRoot->getSystem()->isGameSystem())
|
||||
prompts.push_back(HelpPrompt("x", "random"));
|
||||
if(mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid())
|
||||
{
|
||||
|
|
|
@ -135,6 +135,8 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
|||
return true;
|
||||
}
|
||||
}else if (config->isMappedTo("x", input))
|
||||
{
|
||||
if (mRoot->getSystem()->isGameSystem())
|
||||
{
|
||||
// go to random system game
|
||||
FileData* randomGame = getCursor()->getSystem()->getRandomGame();
|
||||
|
@ -143,6 +145,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
|||
setCursor(randomGame);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}else if (config->isMappedTo("y", input) && !(UIModeController::getInstance()->isUIModeKid()))
|
||||
{
|
||||
if(mRoot->getSystem()->isGameSystem())
|
||||
|
|
Loading…
Reference in a new issue