mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-11 22:49:55 +00:00
Fix duplicate path addition
This commit is contained in:
@@ -4180,7 +4180,7 @@ void main_window::AddGamesFromDirs(QStringList&& paths)
|
||||
{
|
||||
for (const auto& dir_path : paths)
|
||||
{
|
||||
if (dir_path.startsWith(game->info.path.c_str()) && fs::exists(game->info.path))
|
||||
if (Emu.IsPathInsideDir(game->info.path, dir_path.toStdString()))
|
||||
{
|
||||
existing.insert(game->info.path);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user