// // SetupRandAdvTriggerPopup::removeGroupIDFromObject from 0x527b84 to 0x527bd2 (78 bytes) // // 2 xrefs: // > SetupRandAdvTriggerPopup::removeGroupID @ 0x528e68 // > SetupRandAdvTriggerPopup::removeGroupID @ 0x528e8e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SetupRandAdvTriggerPopup::removeGroupIDFromObject(SetupRandAdvTriggerPopup *a1, RandTriggerGameObject *a2, int a3) { ChanceObject *m_finish; // r5 int v5; // r0 ChanceObject *m_start; // r3 int v7; // r1 int m_groupID; // t1 ChanceObject *v9; // r4 int v10; // r7 int m_oldGroupID; // r1 int m_chance; // r2 int m_unk00c; // r3 ChanceObject *v14; // r6 m_finish = a2->m_chanceObjects.m_finish; v5 = 0; m_start = a2->m_chanceObjects.m_start; v7 = m_finish - m_start; while ( v5 != v7 ) { m_groupID = m_start->m_groupID; ++m_start; if ( m_groupID == a3 ) { v9 = m_start; if ( m_start != m_finish ) { v10 = m_finish - m_start; while ( 1 ) { ++v9; if ( v10 <= 0 ) break; m_oldGroupID = v9[-1].m_oldGroupID; m_chance = v9[-1].m_chance; m_unk00c = v9[-1].m_unk00c; v14 = v9 - 2; --v10; v14->m_groupID = v9[-1].m_groupID; v14->m_oldGroupID = m_oldGroupID; v14->m_chance = m_chance; v14->m_unk00c = m_unk00c; } } a2->m_chanceObjects.m_finish = m_finish - 1; return; } ++v5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source