Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt/game_list_frame: Ignore file entries when adding disc/game directories #6214

Merged
merged 1 commit into from Jul 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions rpcs3/rpcs3qt/game_list_frame.cpp
Expand Up @@ -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;
}
Expand All @@ -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);
}
Expand Down