summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2011-03-23 21:54:14 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2011-03-23 21:54:14 +0000
commit63ed047aef4879d7f82f59b25e64c7e466f6b651 (patch)
tree79aec2ec0356e1314d87ea26e2503bb01f827d24 /Source/Core
parent66632f06455f0a08ba5ac7ada37c35103ee9ad7b (diff)
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
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DolphinWX/Src/ISOFile.cpp4
1 files 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();
}
}