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