From 5539dd4e8b45c48136d35e822168e09292f1f52d Mon Sep 17 00:00:00 2001 From: hrydgard Date: Thu, 3 Jun 2010 20:37:32 +0000 Subject: Gamelist loading speedup: Be lazy about parsing the file system - it's not necessary for Wii games since the banners are external (in savegames). Also make it possible for the gamelist code to create cache entries for GC images without banners. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5595 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DiscIO/Src/BannerLoader.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Source/Core/DiscIO/Src/BannerLoader.cpp') diff --git a/Source/Core/DiscIO/Src/BannerLoader.cpp b/Source/Core/DiscIO/Src/BannerLoader.cpp index 465e8df3ad..e646195a92 100644 --- a/Source/Core/DiscIO/Src/BannerLoader.cpp +++ b/Source/Core/DiscIO/Src/BannerLoader.cpp @@ -128,15 +128,18 @@ bool IBannerLoader::CopyBeUnicodeToString( std::string& _rDestination, const u16 return returnCode; } - IBannerLoader* CreateBannerLoader(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume *pVolume) { if (IsVolumeWiiDisc(pVolume) || IsVolumeWadFile(pVolume)) { - return(new CBannerLoaderWii(pVolume)); + return new CBannerLoaderWii(pVolume); + } + if (_rFileSystem.IsValid()) + { + return new CBannerLoaderGC(_rFileSystem); } - return(new CBannerLoaderGC(_rFileSystem)); + return NULL; } -} // namespace +} // namespace -- cgit v1.2.3