mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
Fix DoFileSearch returning the passed-in directories themselves.
Fixes https://code.google.com/p/dolphin-emu/issues/detail?id=8697&can=3
This commit is contained in:
parent
86dd81cf6b
commit
384a1b4e3b
2 changed files with 5 additions and 6 deletions
|
@ -80,16 +80,13 @@ void DGameTracker::ScanForGames()
|
|||
|
||||
delete m_watcher;
|
||||
m_watcher = new QFileSystemWatcher(this);
|
||||
for (std::string dir : SConfig::GetInstance().m_ISOFolder)
|
||||
m_watcher->addPath(QString::fromStdString(dir));
|
||||
if (SConfig::GetInstance().m_RecursiveISOFolder)
|
||||
{
|
||||
for (std::string dir : FindSubdirectories(SConfig::GetInstance().m_ISOFolder, /*recursive*/ true))
|
||||
m_watcher->addPath(QString::fromStdString(dir));
|
||||
}
|
||||
else
|
||||
{
|
||||
for (std::string dir : SConfig::GetInstance().m_ISOFolder)
|
||||
m_watcher->addPath(QString::fromStdString(dir));
|
||||
}
|
||||
|
||||
std::vector<std::string> exts;
|
||||
if (SConfig::GetInstance().m_ListGC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue