mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00:00
Qt/game_list_frame: Ignore file entries when adding disc/game directories
Fixes #6212.
This commit is contained in:
parent
736ec4035e
commit
397e5dd1ea
1 changed files with 2 additions and 2 deletions
|
@ -407,7 +407,7 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
|
|||
{
|
||||
for (const auto& entry : fs::dir(path))
|
||||
{
|
||||
if (entry.name == "." || entry.name == "..")
|
||||
if (!entry.is_directory || entry.name == "." || entry.name == "..")
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
@ -418,7 +418,7 @@ void game_list_frame::Refresh(const bool fromDrive, const bool scrollAfter)
|
|||
{
|
||||
add_disc_dir(entry_path);
|
||||
}
|
||||
else if (entry.is_directory)
|
||||
else
|
||||
{
|
||||
path_list.emplace_back(entry_path);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue