mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
Merge pull request #1568 from lioncash/dir
game_list: Use QFileInfo instead of common's file functions
This commit is contained in:
commit
d9590d7dfa
1 changed files with 3 additions and 4 deletions
|
@ -16,7 +16,6 @@
|
||||||
#include <fmt/format.h>
|
#include <fmt/format.h>
|
||||||
#include "common/common_paths.h"
|
#include "common/common_paths.h"
|
||||||
#include "common/common_types.h"
|
#include "common/common_types.h"
|
||||||
#include "common/file_util.h"
|
|
||||||
#include "common/logging/log.h"
|
#include "common/logging/log.h"
|
||||||
#include "core/file_sys/patch_manager.h"
|
#include "core/file_sys/patch_manager.h"
|
||||||
#include "yuzu/compatibility_list.h"
|
#include "yuzu/compatibility_list.h"
|
||||||
|
@ -387,9 +386,9 @@ void GameList::LoadCompatibilityList() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GameList::PopulateAsync(const QString& dir_path, bool deep_scan) {
|
void GameList::PopulateAsync(const QString& dir_path, bool deep_scan) {
|
||||||
if (!FileUtil::Exists(dir_path.toStdString()) ||
|
const QFileInfo dir_info{dir_path};
|
||||||
!FileUtil::IsDirectory(dir_path.toStdString())) {
|
if (!dir_info.exists() || !dir_info.isDir()) {
|
||||||
LOG_ERROR(Frontend, "Could not find game list folder at {}", dir_path.toLocal8Bit().data());
|
LOG_ERROR(Frontend, "Could not find game list folder at {}", dir_path.toStdString());
|
||||||
search_field->setFilterResult(0, 0);
|
search_field->setFilterResult(0, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue