diff options
| author | 2019-10-04 23:41:02 +0000 | |
|---|---|---|
| committer | 2019-10-04 23:41:22 +0000 | |
| commit | e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c (patch) | |
| tree | fa45f986905ad8849b188c93c4a58d64dc3c2917 /src | |
| parent | yuzu/game_list: Silence -Wswitch and -Wunused-variable (diff) | |
| download | yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.tar.gz yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.tar.xz yuzu-e1afeec76df0d8ad9e0284eed78a9c1bd1d6b28c.zip | |
yuzu/game_list_worker: Silence warnings
Diffstat (limited to 'src')
| -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 | |||
| 326 | } | 326 | } |
| 327 | } else { | 327 | } else { |
| 328 | std::vector<u8> icon; | 328 | std::vector<u8> icon; |
| 329 | const auto res1 = loader->ReadIcon(icon); | 329 | [[maybe_unused]] const auto res1 = loader->ReadIcon(icon); |
| 330 | 330 | ||
| 331 | std::string name = " "; | 331 | std::string name = " "; |
| 332 | const auto res3 = loader->ReadTitle(name); | 332 | [[maybe_unused]] const auto res3 = loader->ReadTitle(name); |
| 333 | 333 | ||
| 334 | const FileSys::PatchManager patch{program_id}; | 334 | const FileSys::PatchManager patch{program_id}; |
| 335 | 335 | ||
| @@ -354,20 +354,20 @@ void GameListWorker::run() { | |||
| 354 | for (UISettings::GameDir& game_dir : game_dirs) { | 354 | for (UISettings::GameDir& game_dir : game_dirs) { |
| 355 | if (game_dir.path == QStringLiteral("SDMC")) { | 355 | if (game_dir.path == QStringLiteral("SDMC")) { |
| 356 | auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::SdmcDir); | 356 | auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::SdmcDir); |
| 357 | emit DirEntryReady({game_list_dir}); | 357 | emit DirEntryReady(game_list_dir); |
| 358 | AddTitlesToGameList(game_list_dir); | 358 | AddTitlesToGameList(game_list_dir); |
| 359 | } else if (game_dir.path == QStringLiteral("UserNAND")) { | 359 | } else if (game_dir.path == QStringLiteral("UserNAND")) { |
| 360 | auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::UserNandDir); | 360 | auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::UserNandDir); |
| 361 | emit DirEntryReady({game_list_dir}); | 361 | emit DirEntryReady(game_list_dir); |
| 362 | AddTitlesToGameList(game_list_dir); | 362 | AddTitlesToGameList(game_list_dir); |
| 363 | } else if (game_dir.path == QStringLiteral("SysNAND")) { | 363 | } else if (game_dir.path == QStringLiteral("SysNAND")) { |
| 364 | auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::SysNandDir); | 364 | auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::SysNandDir); |
| 365 | emit DirEntryReady({game_list_dir}); | 365 | emit DirEntryReady(game_list_dir); |
| 366 | AddTitlesToGameList(game_list_dir); | 366 | AddTitlesToGameList(game_list_dir); |
| 367 | } else { | 367 | } else { |
| 368 | watch_list.append(game_dir.path); | 368 | watch_list.append(game_dir.path); |
| 369 | auto* const game_list_dir = new GameListDir(game_dir); | 369 | auto* const game_list_dir = new GameListDir(game_dir); |
| 370 | emit DirEntryReady({game_list_dir}); | 370 | emit DirEntryReady(game_list_dir); |
| 371 | provider->ClearAllEntries(); | 371 | provider->ClearAllEntries(); |
| 372 | ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(), 2, | 372 | ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(), 2, |
| 373 | game_list_dir); | 373 | 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: | |||
| 75 | 75 | ||
| 76 | std::shared_ptr<FileSys::VfsFilesystem> vfs; | 76 | std::shared_ptr<FileSys::VfsFilesystem> vfs; |
| 77 | FileSys::ManualContentProvider* provider; | 77 | FileSys::ManualContentProvider* provider; |
| 78 | QStringList watch_list; | ||
| 79 | const CompatibilityList& compatibility_list; | ||
| 80 | QVector<UISettings::GameDir>& game_dirs; | 78 | QVector<UISettings::GameDir>& game_dirs; |
| 79 | const CompatibilityList& compatibility_list; | ||
| 80 | |||
| 81 | QStringList watch_list; | ||
| 81 | std::atomic_bool stop_processing; | 82 | std::atomic_bool stop_processing; |
| 82 | }; | 83 | }; |