This commit is contained in:
Christian Semmler 2024-04-16 10:00:42 -04:00
parent e158430de5
commit 8f3672a342
2 changed files with 6 additions and 6 deletions

View File

@ -36,7 +36,7 @@ class LegoPhonemePresenter : public MxFlcPresenter {
undefined4 m_unk0x68; // 0x68
LegoTextureInfo* m_textureInfo; // 0x6c
MxBool m_unk0x70; // 0x70
MxString roiName; // 0x74
MxString m_roiName; // 0x74
MxBool m_unk0x84; // 0x84
};

View File

@ -39,24 +39,24 @@ void LegoPhonemePresenter::StartingTickle()
m_action->GetExtra(extraLength, extraData);
if (extraData != NULL) {
roiName = extraData;
roiName.ToUpperCase();
m_roiName = extraData;
m_roiName.ToUpperCase();
LegoROI *entityROI, *head;
if (m_compositePresenter != NULL && m_compositePresenter->IsA("LegoAnimMMPresenter")) {
entityROI = FindROI(roiName.GetData());
entityROI = FindROI(m_roiName.GetData());
m_unk0x84 = TRUE;
}
else {
entityROI = CharacterManager()->GetROI(roiName.GetData(), TRUE);
entityROI = CharacterManager()->GetROI(m_roiName.GetData(), TRUE);
}
head = entityROI->FindChildROI("head", entityROI);
head->GetTexture(m_textureInfo);
LegoPhonemeList* phonemeList = VideoManager()->GetPhonemeList();
LegoPhoneme* phoneme = new LegoPhoneme(roiName.GetData(), 1);
LegoPhoneme* phoneme = new LegoPhoneme(m_roiName.GetData(), 1);
LegoPhonemeListCursor cursor(phonemeList);