From b249a1e9a35d9b37f62ba6942310d982889547a8 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 25 Dec 2020 15:28:19 +0100 Subject: [PATCH] Added folder indication icon when scraping a folder. --- es-app/src/guis/GuiGameScraper.cpp | 3 ++- es-app/src/guis/GuiScraperMulti.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/es-app/src/guis/GuiGameScraper.cpp b/es-app/src/guis/GuiGameScraper.cpp index 138b26c1d..7783d9ecf 100644 --- a/es-app/src/guis/GuiGameScraper.cpp +++ b/es-app/src/guis/GuiGameScraper.cpp @@ -33,7 +33,8 @@ GuiGameScraper::GuiGameScraper( // Row 0 is a spacer. mGameName = std::make_shared(mWindow, - Utils::FileSystem::getFileName(mSearchParams.game->getPath()), + Utils::FileSystem::getFileName(mSearchParams.game->getPath()) + + ((mSearchParams.game->getType() == FOLDER) ? " " + ViewController::FOLDER_CHAR : ""), Font::get(FONT_SIZE_MEDIUM), 0x777777FF, ALIGN_CENTER); mGrid.setEntry(mGameName, Vector2i(0, 1), false, true); diff --git a/es-app/src/guis/GuiScraperMulti.cpp b/es-app/src/guis/GuiScraperMulti.cpp index cff8c146b..30f574138 100644 --- a/es-app/src/guis/GuiScraperMulti.cpp +++ b/es-app/src/guis/GuiScraperMulti.cpp @@ -131,9 +131,11 @@ void GuiScraperMulti::doNextSearch() mSystem->setText(Utils::String::toUpper(mSearchQueue.front().system->getFullName())); // Update subtitle. - ss.str(""); // Clear. + ss.str(""); ss << "GAME " << (mCurrentGame + 1) << " OF " << mTotalGames << " - " << - Utils::FileSystem::getFileName(mSearchQueue.front().game->getPath()); + Utils::FileSystem::getFileName(mSearchQueue.front().game->getPath()) << + ((mSearchQueue.front().game->getType() == FOLDER) ? " " + + ViewController::FOLDER_CHAR : ""); mSubtitle->setText(ss.str()); mSearchComp->search(mSearchQueue.front());