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

@ -315,8 +315,12 @@ struct SpecMP1 : SpecBase
nod::Partition* partition = disc.getDataPartition();
nod::Node& root = partition->getFSTRoot();
nod::Node::DirectoryIterator dolIt = root.find("rs5mp1_p.dol");
if (dolIt == root.end())
{
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

@ -183,8 +183,12 @@ struct SpecMP2 : SpecBase
nod::Partition* partition = disc.getDataPartition();
nod::Node& root = partition->getFSTRoot();
nod::Node::DirectoryIterator dolIt = root.find("rs5mp2_p.dol");
if (dolIt == root.end())
{
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;