diff --git a/rpcs3/rpcs3qt/game_list_frame.cpp b/rpcs3/rpcs3qt/game_list_frame.cpp index 07588f443d..d429cf8d77 100644 --- a/rpcs3/rpcs3qt/game_list_frame.cpp +++ b/rpcs3/rpcs3qt/game_list_frame.cpp @@ -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); }