From 63ed047aef4879d7f82f59b25e64c7e466f6b651 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Wed, 23 Mar 2011 21:54:14 +0000 Subject: [PATCH] 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 --- Source/Core/DolphinWX/Src/ISOFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Src/ISOFile.cpp b/Source/Core/DolphinWX/Src/ISOFile.cpp index cf9810b9bf..b21f2a2612 100644 --- a/Source/Core/DolphinWX/Src/ISOFile.cpp +++ b/Source/Core/DolphinWX/Src/ISOFile.cpp @@ -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(); } }