mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-10-31 14:56:40 +08:00 
			
		
		
		
	yuzu/game_list_worker: Silence warnings
This commit is contained in:
		
							parent
							
								
									f297e9ff22
								
							
						
					
					
						commit
						e1afeec76d
					
				| @ -326,10 +326,10 @@ void GameListWorker::ScanFileSystem(ScanTarget target, const std::string& dir_pa | |||||||
|                 } |                 } | ||||||
|             } else { |             } else { | ||||||
|                 std::vector<u8> icon; |                 std::vector<u8> icon; | ||||||
|                 const auto res1 = loader->ReadIcon(icon); |                 [[maybe_unused]] const auto res1 = loader->ReadIcon(icon); | ||||||
| 
 | 
 | ||||||
|                 std::string name = " "; |                 std::string name = " "; | ||||||
|                 const auto res3 = loader->ReadTitle(name); |                 [[maybe_unused]] const auto res3 = loader->ReadTitle(name); | ||||||
| 
 | 
 | ||||||
|                 const FileSys::PatchManager patch{program_id}; |                 const FileSys::PatchManager patch{program_id}; | ||||||
| 
 | 
 | ||||||
| @ -354,20 +354,20 @@ void GameListWorker::run() { | |||||||
|     for (UISettings::GameDir& game_dir : game_dirs) { |     for (UISettings::GameDir& game_dir : game_dirs) { | ||||||
|         if (game_dir.path == QStringLiteral("SDMC")) { |         if (game_dir.path == QStringLiteral("SDMC")) { | ||||||
|             auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::SdmcDir); |             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); |             AddTitlesToGameList(game_list_dir); | ||||||
|         } else if (game_dir.path == QStringLiteral("UserNAND")) { |         } else if (game_dir.path == QStringLiteral("UserNAND")) { | ||||||
|             auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::UserNandDir); |             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); |             AddTitlesToGameList(game_list_dir); | ||||||
|         } else if (game_dir.path == QStringLiteral("SysNAND")) { |         } else if (game_dir.path == QStringLiteral("SysNAND")) { | ||||||
|             auto* const game_list_dir = new GameListDir(game_dir, GameListItemType::SysNandDir); |             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); |             AddTitlesToGameList(game_list_dir); | ||||||
|         } else { |         } else { | ||||||
|             watch_list.append(game_dir.path); |             watch_list.append(game_dir.path); | ||||||
|             auto* const game_list_dir = new GameListDir(game_dir); |             auto* const game_list_dir = new GameListDir(game_dir); | ||||||
|             emit DirEntryReady({game_list_dir}); |             emit DirEntryReady(game_list_dir); | ||||||
|             provider->ClearAllEntries(); |             provider->ClearAllEntries(); | ||||||
|             ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(), 2, |             ScanFileSystem(ScanTarget::FillManualContentProvider, game_dir.path.toStdString(), 2, | ||||||
|                            game_list_dir); |                            game_list_dir); | ||||||
|  | |||||||
| @ -75,8 +75,9 @@ private: | |||||||
| 
 | 
 | ||||||
|     std::shared_ptr<FileSys::VfsFilesystem> vfs; |     std::shared_ptr<FileSys::VfsFilesystem> vfs; | ||||||
|     FileSys::ManualContentProvider* provider; |     FileSys::ManualContentProvider* provider; | ||||||
|     QStringList watch_list; |  | ||||||
|     const CompatibilityList& compatibility_list; |  | ||||||
|     QVector<UISettings::GameDir>& game_dirs; |     QVector<UISettings::GameDir>& game_dirs; | ||||||
|  |     const CompatibilityList& compatibility_list; | ||||||
|  | 
 | ||||||
|  |     QStringList watch_list; | ||||||
|     std::atomic_bool stop_processing; |     std::atomic_bool stop_processing; | ||||||
| }; | }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user