Only create a GameListItem cache if the image is valid.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7406 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2011-03-23 21:54:14 +00:00
parent 66632f0645
commit 63ed047aef
1 changed files with 2 additions and 2 deletions

View File

@ -121,9 +121,9 @@ GameListItem::GameListItem(const std::string& _rFileName)
m_Valid = true;
// If not Gamecube, create a cache file only if we have an image.
// Create a cache file only if we have an image.
// Wii isos create their images after you have generated the first savegame
if (m_Platform == GAMECUBE_DISC || !m_pImage.empty())
if (!m_pImage.empty())
SaveToCache();
}
}