diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-24 17:13:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 17:13:51 -0400 |
commit | d9590d7dfa8c77716b443e1435bf6df297df32d9 (patch) | |
tree | 6a573aec8f186c1d2e86cfe5ce210e7bf8b63cb3 /src/yuzu/game_list.cpp | |
parent | 2694b43d3aefd875b5c96405acb49c18e1e21275 (diff) | |
parent | a1c85b8c551bb1b6fe6ddf3f902c6916047714a0 (diff) |
Merge pull request #1568 from lioncash/dir
game_list: Use QFileInfo instead of common's file functions
Diffstat (limited to 'src/yuzu/game_list.cpp')
-rw-r--r-- | src/yuzu/game_list.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp index 710197165..a5a4aa432 100644 --- a/src/yuzu/game_list.cpp +++ b/src/yuzu/game_list.cpp @@ -16,7 +16,6 @@ #include <fmt/format.h> #include "common/common_paths.h" #include "common/common_types.h" -#include "common/file_util.h" #include "common/logging/log.h" #include "core/file_sys/patch_manager.h" #include "yuzu/compatibility_list.h" @@ -387,9 +386,9 @@ void GameList::LoadCompatibilityList() { } void GameList::PopulateAsync(const QString& dir_path, bool deep_scan) { - if (!FileUtil::Exists(dir_path.toStdString()) || - !FileUtil::IsDirectory(dir_path.toStdString())) { - LOG_ERROR(Frontend, "Could not find game list folder at {}", dir_path.toLocal8Bit().data()); + const QFileInfo dir_info{dir_path}; + if (!dir_info.exists() || !dir_info.isDir()) { + LOG_ERROR(Frontend, "Could not find game list folder at {}", dir_path.toStdString()); search_field->setFilterResult(0, 0); return; } |