summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-10-24 14:38:41 +0200
committerLioncash <mathew1800@gmail.com>2018-10-24 14:40:22 +0200
commita1c85b8c551bb1b6fe6ddf3f902c6916047714a0 (patch)
tree3fcf1df61944fca47046161089b5957f8db40188
parentMerge pull request #1552 from FearlessTobi/port-4336 (diff)
downloadyuzu-a1c85b8c551bb1b6fe6ddf3f902c6916047714a0.tar
yuzu-a1c85b8c551bb1b6fe6ddf3f902c6916047714a0.tar.gz
yuzu-a1c85b8c551bb1b6fe6ddf3f902c6916047714a0.tar.bz2
yuzu-a1c85b8c551bb1b6fe6ddf3f902c6916047714a0.tar.lz
yuzu-a1c85b8c551bb1b6fe6ddf3f902c6916047714a0.tar.xz
yuzu-a1c85b8c551bb1b6fe6ddf3f902c6916047714a0.tar.zst
yuzu-a1c85b8c551bb1b6fe6ddf3f902c6916047714a0.zip
-rw-r--r--src/yuzu/game_list.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/yuzu/game_list.cpp b/src/yuzu/game_list.cpp
index 67890455a..3a2685e24 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;
}