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
This commit is contained in:
hrydgard
2010-06-03 20:37:32 +00:00
parent 49bbbe099d
commit 5539dd4e8b
7 changed files with 55 additions and 41 deletions

View File

@ -46,7 +46,6 @@ GameListItem::GameListItem(const std::string& _rFileName)
, m_pImage(NULL)
, m_ImageSize(0)
{
if (LoadFromCache())
{
m_Valid = true;
@ -119,9 +118,9 @@ GameListItem::GameListItem(const std::string& _rFileName)
m_Valid = true;
// just if we have an image create a cache file
// If not Gamecube, create a cache file only if we have an image.
// Wii isos create their images after you have generated the first savegame
if (m_pImage)
if (m_Platform == GAMECUBE_DISC || m_pImage)
SaveToCache();
}
}