summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-10-24 17:13:51 -0400
committerGravatar GitHub2018-10-24 17:13:51 -0400
commitd9590d7dfa8c77716b443e1435bf6df297df32d9 (patch)
tree6a573aec8f186c1d2e86cfe5ce210e7bf8b63cb3 /src
parentMerge pull request #1567 from lioncash/translate (diff)
parentgame_list: Use QFileInfo instead of common's file functions (diff)
downloadyuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.tar.gz
yuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.tar.xz
yuzu-d9590d7dfa8c77716b443e1435bf6df297df32d9.zip
Merge pull request #1568 from lioncash/dir
game_list: Use QFileInfo instead of common's file functions
Diffstat (limited to 'src')
-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 @@
16#include <fmt/format.h> 16#include <fmt/format.h>
17#include "common/common_paths.h" 17#include "common/common_paths.h"
18#include "common/common_types.h" 18#include "common/common_types.h"
19#include "common/file_util.h"
20#include "common/logging/log.h" 19#include "common/logging/log.h"
21#include "core/file_sys/patch_manager.h" 20#include "core/file_sys/patch_manager.h"
22#include "yuzu/compatibility_list.h" 21#include "yuzu/compatibility_list.h"
@@ -387,9 +386,9 @@ void GameList::LoadCompatibilityList() {
387} 386}
388 387
389void GameList::PopulateAsync(const QString& dir_path, bool deep_scan) { 388void GameList::PopulateAsync(const QString& dir_path, bool deep_scan) {
390 if (!FileUtil::Exists(dir_path.toStdString()) || 389 const QFileInfo dir_info{dir_path};
391 !FileUtil::IsDirectory(dir_path.toStdString())) { 390 if (!dir_info.exists() || !dir_info.isDir()) {
392 LOG_ERROR(Frontend, "Could not find game list folder at {}", dir_path.toLocal8Bit().data()); 391 LOG_ERROR(Frontend, "Could not find game list folder at {}", dir_path.toStdString());
393 search_field->setFilterResult(0, 0); 392 search_field->setFilterResult(0, 0);
394 return; 393 return;
395 } 394 }