mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
The multi-scraper now shows the path to the game file.
This commit is contained in:
parent
a3b8241e1e
commit
59577c78c5
|
@ -147,10 +147,25 @@ void GuiScraperMulti::doNextSearch()
|
|||
scrapeName = Utils::FileSystem::getFileName(mSearchQueue.front().game->getPath());
|
||||
}
|
||||
|
||||
// Extract possible subfolders from the path.
|
||||
std::string folderPath = Utils::String::replace(
|
||||
Utils::FileSystem::getParent(mSearchQueue.front().game->getPath()),
|
||||
mSearchQueue.front().system->getSystemEnvData()->mStartPath, "");
|
||||
|
||||
if (folderPath.size() >= 2) {
|
||||
folderPath.erase(0, 1);
|
||||
#if defined(_WIN64)
|
||||
folderPath.push_back('\\');
|
||||
folderPath = Utils::String::replace(folderPath, "/", "\\");
|
||||
#else
|
||||
folderPath.push_back('/');
|
||||
#endif
|
||||
}
|
||||
|
||||
// Update subtitle.
|
||||
ss.str("");
|
||||
ss << "GAME " << (mCurrentGame + 1) << " OF " << mTotalGames << " - " << scrapeName <<
|
||||
((mSearchQueue.front().game->getType() == FOLDER) ? " " +
|
||||
ss << "GAME " << (mCurrentGame + 1) << " OF " << mTotalGames << " - " << folderPath <<
|
||||
scrapeName << ((mSearchQueue.front().game->getType() == FOLDER) ? " " +
|
||||
ViewController::FOLDER_CHAR : "");
|
||||
mSubtitle->setText(ss.str());
|
||||
|
||||
|
|
Loading…
Reference in a new issue