From f8f7da070f0ff71064c81523498dbb9cb3adae74 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 18 Aug 2017 08:41:28 -1000 Subject: [PATCH] Minor correction for Wii de Asobu --- DataSpec/SpecMP1.cpp | 6 +++++- DataSpec/SpecMP2.cpp | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/DataSpec/SpecMP1.cpp b/DataSpec/SpecMP1.cpp index 582c27cd1..44618df66 100644 --- a/DataSpec/SpecMP1.cpp +++ b/DataSpec/SpecMP1.cpp @@ -316,7 +316,11 @@ struct SpecMP1 : SpecBase nod::Node& root = partition->getFSTRoot(); nod::Node::DirectoryIterator dolIt = root.find("rs5mp1_p.dol"); if (dolIt == root.end()) - return false; + { + dolIt = root.find("rs5mp1jpn_p.dol"); + if (dolIt == root.end()) + return false; + } m_dolBuf = dolIt->getBuf(); const char* buildInfo = (char*)memmem(m_dolBuf.get(), dolIt->size(), "MetroidBuildInfo", 16) + 19; diff --git a/DataSpec/SpecMP2.cpp b/DataSpec/SpecMP2.cpp index a5f890d4f..17b709a72 100644 --- a/DataSpec/SpecMP2.cpp +++ b/DataSpec/SpecMP2.cpp @@ -184,7 +184,11 @@ struct SpecMP2 : SpecBase nod::Node& root = partition->getFSTRoot(); nod::Node::DirectoryIterator dolIt = root.find("rs5mp2_p.dol"); if (dolIt == root.end()) - return false; + { + dolIt = root.find("rs5mp2jpn_p.dol"); + if (dolIt == root.end()) + return false; + } std::unique_ptr dolBuf = dolIt->getBuf(); const char* buildInfo = (char*)memmem(dolBuf.get(), dolIt->size(), "MetroidBuildInfo", 16) + 19;