Added folder indication icon when scraping a folder.

This commit is contained in:
Leon Styhre 2020-12-25 15:28:19 +01:00
parent 7a437a44e5
commit b249a1e9a3
2 changed files with 6 additions and 3 deletions

View file

@ -33,7 +33,8 @@ GuiGameScraper::GuiGameScraper(
// Row 0 is a spacer.
mGameName = std::make_shared<TextComponent>(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);

View file

@ -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());