diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2017-03-18 15:01:03 +0100 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2017-03-18 19:07:11 +0100 |
| commit | c987f58319be3de0cd392e757c4ff375162c196a (patch) | |
| tree | 2812d7ca7a173b6b9015104579553a16e76f60dc /Source/Core/DolphinWX/ISOFile.cpp | |
| parent | b83929477fdb890e289a199f47df686a638b81a5 (diff) | |
Check whether WAD is a channel before reading names
Dolphin assumes that content 0 is opening.bnr, without checking
whether content 0 exists or if it is even supposed to be there (it's
only there for channels). This results in sometimes reading garbage.
This adds a check to only try to read names from content 0's header
if the title is a channel (channel, system channel or game channel).
Diffstat (limited to 'Source/Core/DolphinWX/ISOFile.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/ISOFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/ISOFile.cpp b/Source/Core/DolphinWX/ISOFile.cpp index 0962f17893..23768143bd 100644 --- a/Source/Core/DolphinWX/ISOFile.cpp +++ b/Source/Core/DolphinWX/ISOFile.cpp @@ -36,7 +36,7 @@ #include "DolphinWX/ISOFile.h" #include "DolphinWX/WxUtils.h" -static const u32 CACHE_REVISION = 0x128; // Last changed in PR 4542 +static const u32 CACHE_REVISION = 0x129; // Last changed in PR 5102 static std::string GetLanguageString(DiscIO::Language language, std::map<DiscIO::Language, std::string> strings) |
