mirror of https://github.com/AxioDL/metaforce.git
Minor correction for Wii de Asobu
This commit is contained in:
parent
b1e4e1a363
commit
f8f7da070f
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue