summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-24 23:13:51 +0200
committerGitHub <noreply@github.com>2018-10-24 23:13:51 +0200
commitd9590d7dfa8c77716b443e1435bf6df297df32d9 (patch)
tree6a573aec8f186c1d2e86cfe5ce210e7bf8b63cb3
parentMerge pull request #1567 from lioncash/translate (diff)
parentgame_list: Use QFileInfo instead of common's file functions (diff)
downloadyuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.tar
yuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.tar.gz
yuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.tar.bz2
yuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.tar.lz
yuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.tar.xz
yuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.tar.zst
yuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.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 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;
}