Implement/match LegoAnimationManager::FUN_10062770 (#860)

This commit is contained in:
Christian Semmler 2024-04-27 09:46:47 -04:00 committed by GitHub
parent e49d05c410
commit c7e5457f95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 16 additions and 5 deletions

View file

@ -134,7 +134,7 @@ class LegoAnimationManager : public MxCore {
LegoTranInfoList* m_tranInfoList2; // 0x24 LegoTranInfoList* m_tranInfoList2; // 0x24
MxPresenter* m_unk0x28[2]; // 0x28 MxPresenter* m_unk0x28[2]; // 0x28
MxLong m_unk0x30[2]; // 0x30 MxLong m_unk0x30[2]; // 0x30
undefined m_unk0x38; // 0x38 MxBool m_unk0x38; // 0x38
MxBool m_unk0x39; // 0x39 MxBool m_unk0x39; // 0x39
undefined m_unk0x3a; // 0x3a undefined m_unk0x3a; // 0x3a
Unknown0x3c m_unk0x3c[40]; // 0x3c Unknown0x3c m_unk0x3c[40]; // 0x3c

View file

@ -193,7 +193,7 @@ void LegoAnimationManager::Init()
m_unk0x3c[i].m_unk0x14 = 0; m_unk0x3c[i].m_unk0x14 = 0;
} }
m_unk0x38 = 0; m_unk0x38 = FALSE;
m_unk0x39 = FALSE; m_unk0x39 = FALSE;
m_unk0x3a = 1; m_unk0x3a = 1;
m_unk0x3fc = 0; m_unk0x3fc = 0;
@ -261,7 +261,7 @@ MxResult LegoAnimationManager::LoadScriptInfo(MxS32 p_scriptIndex)
m_unk0x30[i] = 0; m_unk0x30[i] = 0;
} }
m_unk0x38 = 0; m_unk0x38 = FALSE;
m_unk0x39 = FALSE; m_unk0x39 = FALSE;
m_unk0x430 = 0; m_unk0x430 = 0;
m_unk0x42c = 0; m_unk0x42c = 0;
@ -755,10 +755,21 @@ MxS8 LegoAnimationManager::FUN_10062360(char*)
return 0; return 0;
} }
// STUB: LEGO1 0x10062770 // FUNCTION: LEGO1 0x10062770
// FUNCTION: BETA10 0x1004381a
void LegoAnimationManager::FUN_10062770() void LegoAnimationManager::FUN_10062770()
{ {
// TODO if (!m_unk0x38) {
LegoWorld* world = CurrentWorld();
if (world != NULL) {
m_unk0x28[1] = (MxPresenter*) world->Find("MxSoundPresenter", "TransitionSound1");
m_unk0x28[0] = (MxPresenter*) world->Find("MxSoundPresenter", "TransitionSound2");
m_unk0x30[1] = 200;
m_unk0x30[0] = 750;
m_unk0x38 = TRUE;
}
}
} }
// STUB: LEGO1 0x100627d0 // STUB: LEGO1 0x100627d0