2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:07:41 +00:00

Work on CStateManager::InitializeState flow

This commit is contained in:
Jack Andersen
2016-08-13 17:00:58 -10:00
parent abcb9c2424
commit 2a425b5a73
20 changed files with 403 additions and 80 deletions

View File

@@ -556,8 +556,24 @@ void CGameArea::AddStaticGeometry()
}
}
void CGameArea::SetChain(CGameArea* other, int)
EChain CGameArea::SetChain(CGameArea* next, EChain setChain)
{
if (x138_curChain == setChain)
return x138_curChain;
if (x134_prev)
x134_prev->x130_next = x130_next;
if (x130_next)
x130_next->x134_prev = x134_prev;
x134_prev = nullptr;
x130_next = next;
if (next)
next->x134_prev = this;
EChain ret = x138_curChain;
x138_curChain = setChain;
return ret;
}
bool CGameArea::StartStreamingMainArea()
@@ -653,7 +669,7 @@ void CGameArea::AllocNewAreaData(int offset, int size)
x110_mreaSecBufs.back().first));
}
void CGameArea::Invalidate(CStateManager& mgr)
bool CGameArea::Invalidate(CStateManager& mgr)
{
}