diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-05 01:41:02 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-10-05 01:41:22 +0200 |
commit | e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c (patch) | |
tree | fa45f986905ad8849b188c93c4a58d64dc3c2917 /src | |
parent | yuzu/game_list: Silence -Wswitch and -Wunused-variable (diff) | |
download | yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.tar yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.tar.gz yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.tar.bz2 yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.tar.lz yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.tar.xz yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.tar.zst yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/yuzu/game_list_worker.cpp | 12 | ||||
-rw-r--r-- | src/yuzu/game_list_worker.h | 5 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/yuzu/game_list_worker.cpp b/src/yuzu/game_list_worker.cpp index fd21a9761..4c81ef12b 100644 --- a/src/yuzu/game_list_worker.cpp +++ b/src/yuzu/game_list_worker.cpp @@ -326,10 +326,10 @@ void GameListWorker::ScanFileSystem(ScanTarget target, const std::string& dir_pa } } else { std::vector<u8> icon; - const auto res1 = loader->ReadIcon(icon); + [[maybe_unused]] const auto res1 = loader->ReadIcon(icon); std::string name = " "; - const auto res3 = loader->ReadTitle(name); + [[maybe_unused]] const auto res3 = loader->ReadTitle(name); const FileSys::PatchManager patch{program_id}; @@ -354,20 +354,20 @@ void GameListWorker::run() { for (UISettings::GameDir& game_dir : game_dirs) { if (game_dir.path == QStringLiteral("SDMC")) { auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::SdmcDir); - emit DirEntryReady({game_list_dir}); + emit DirEntryReady(game_list_dir); AddTitlesToGameList(game_list_dir); } else if (game_dir.path == QStringLiteral("UserNAND")) { auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::UserNandDir); - emit DirEntryReady({game_list_dir}); + emit DirEntryReady(game_list_dir); AddTitlesToGameList(game_list_dir); } else if (game_dir.path == QStringLiteral("SysNAND")) { auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::SysNandDir); - emit DirEntryReady({game_list_dir}); + emit DirEntryReady(game_list_dir); AddTitlesToGameList(game_list_dir); } else { watch_list.append(game_dir.path); auto* const game_list_dir = new GameListDir(game_dir); - emit DirEntryReady({game_list_dir}); + emit DirEntryReady(game_list_dir); provider->ClearAllEntries(); ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(), 2, game_list_dir); diff --git a/src/yuzu/game_list_worker.h b/src/yuzu/game_list_worker.h index 6e52fca89..84e4e1b42 100644 --- a/src/yuzu/game_list_worker.h +++ b/src/yuzu/game_list_worker.h @@ -75,8 +75,9 @@ private: std::shared_ptr<FileSys::VfsFilesystem> vfs; FileSys::ManualContentProvider* provider; - QStringList watch_list; - const CompatibilityList& compatibility_list; QVector<UISettings::GameDir>& game_dirs; + const CompatibilityList& compatibility_list; + + QStringList watch_list; std::atomic_bool stop_processing; }; |