Minor correction for Wii de Asobu

This commit is contained in:
Jack Andersen 2017-08-18 08:41:28 -10:00
parent b1e4e1a363
commit f8f7da070f
2 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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<uint8_t[]> dolBuf = dolIt->getBuf();
const char* buildInfo = (char*)memmem(dolBuf.get(), dolIt->size(), "MetroidBuildInfo", 16) + 19;