2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 18:06:10 +00:00

Initial proper CTexture RE, fix configuration corruption

This commit is contained in:
2022-03-02 00:26:24 -08:00
parent 5e7b8ebacf
commit b0a711d5e2
11 changed files with 347 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ CIOWin::EMessageReturn CStateSetterFlow::OnMessage(const CArchitectureMessage& m
CResLoader* loader = g_ResFactory->GetResLoader();
CAssetId worldId;
for (const auto& pak : loader->GetPaks()) {
if (*(pak->GetPath().end() - 6) == '0' + m->m_warpWorldIdx) {
if (*(pak->GetPath().end() - 5) == '0' + m->m_warpWorldIdx) {
worldId = pak->GetMLVLId();
break;
}

View File

@@ -621,7 +621,7 @@ void CMain::Init(const FileStoreManager& storeMgr, CVarManager* cvarMgr, boo::IA
bool found = false;
for (const auto& pak : g_ResFactory->GetResLoader()->GetPaks()) {
if (*(pak->GetPath().end() - 6) == '0' + m_warpWorldIdx) {
if (*(pak->GetPath().end() - 5) == '0' + m_warpWorldIdx) {
found = true;
break;
}