diff --git a/es-app/src/views/gamelist/BasicGameListView.cpp b/es-app/src/views/gamelist/BasicGameListView.cpp index a4d0d9d34..7adb8f8f2 100644 --- a/es-app/src/views/gamelist/BasicGameListView.cpp +++ b/es-app/src/views/gamelist/BasicGameListView.cpp @@ -151,7 +151,8 @@ std::vector BasicGameListView::getHelpPrompts() prompts.push_back(HelpPrompt("a", "launch")); prompts.push_back(HelpPrompt("b", "back")); 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()) { std::string prompt = CollectionSystemManager::get()->getEditingCollection(); diff --git a/es-app/src/views/gamelist/GridGameListView.cpp b/es-app/src/views/gamelist/GridGameListView.cpp index a1496503f..21dfc17c3 100644 --- a/es-app/src/views/gamelist/GridGameListView.cpp +++ b/es-app/src/views/gamelist/GridGameListView.cpp @@ -357,7 +357,8 @@ std::vector GridGameListView::getHelpPrompts() prompts.push_back(HelpPrompt("a", "launch")); prompts.push_back(HelpPrompt("b", "back")); 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()) { std::string prompt = CollectionSystemManager::get()->getEditingCollection(); diff --git a/es-app/src/views/gamelist/ISimpleGameListView.cpp b/es-app/src/views/gamelist/ISimpleGameListView.cpp index fb123f1f5..45acb4cae 100644 --- a/es-app/src/views/gamelist/ISimpleGameListView.cpp +++ b/es-app/src/views/gamelist/ISimpleGameListView.cpp @@ -136,13 +136,16 @@ bool ISimpleGameListView::input(InputConfig* config, Input input) } }else if (config->isMappedTo("x", input)) { - // go to random system game - FileData* randomGame = getCursor()->getSystem()->getRandomGame(); - if (randomGame) + if (mRoot->getSystem()->isGameSystem()) { - 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())) { if(mRoot->getSystem()->isGameSystem())