// // SetupTriggerPopup::updateDefaultTriggerValues from 0x100132784 to 0x100132a58 (724 bytes) // // 95 xrefs: // > SetupTeleportPopup::updateDefaultTriggerValues @ 0x10000c1f0 // > SetupAreaMoveTriggerPopup::updateDefaultTriggerValues @ 0x100036014 // > SetupAreaAnimTriggerPopup::updateDefaultTriggerValues @ 0x10003a6f8 // > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x100062b1c // > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x10006496c // > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x100189a5c // > SetupInstantCollisionTriggerPopup::updateDefaultTriggerValues @ 0x100231474 // > @ 0x1007642f0 // > @ 0x100765ec8 // > @ 0x1007666c0 // > @ 0x100766eb8 // > @ 0x1007676b0 // > @ 0x10076e3b8 // > @ 0x10076f418 // > @ 0x1007707e0 // > @ 0x100771cf0 // > @ 0x1007768b8 // > @ 0x1007850e8 // > @ 0x100786548 // > @ 0x100792e08 // > @ 0x1007936c8 // > @ 0x100796b78 // > @ 0x10079b8a8 // > @ 0x1007a1fc0 // > @ 0x1007a27d0 // > @ 0x1007a3060 // > @ 0x1007a3858 // > @ 0x1007a4050 // > @ 0x1007a48e8 // > @ 0x1007a7328 // > @ 0x1007aa620 // > @ 0x1007aae18 // > @ 0x1007ac798 // > @ 0x1007b0cb0 // > @ 0x1007b1d10 // > @ 0x1007b24f0 // > @ 0x1007b3ac8 // > @ 0x1007b5520 // > @ 0x1007b78a8 // > @ 0x1007b9918 // > @ 0x1007bd0b0 // > @ 0x1007be058 // > @ 0x1007c2678 // > @ 0x1007c4f08 // > @ 0x1007c66f0 // > @ 0x1007c8988 // > @ 0x1007cdc70 // > @ 0x1007d2448 // > @ 0x1007d4170 // > @ 0x1007d68b8 // > @ 0x1007d70b0 // > @ 0x1007d90a8 // > @ 0x1007dd288 // > @ 0x1007de190 // > @ 0x1007de988 // > @ 0x1007df198 // > @ 0x1007e0250 // > @ 0x1007e2b38 // > @ 0x1007e3360 // > @ 0x1007e3b58 // > @ 0x1007e4dc8 // > @ 0x1007e5cd0 // > @ 0x1007e8060 // > @ 0x1007e8858 // > @ 0x1007f1050 // > @ 0x10080d548 // > @ 0x10080dd40 // > @ 0x10080f3a0 // > @ 0x100813208 // > @ 0x100816c88 // > @ 0x1008180b0 // > @ 0x1008188a8 // > @ 0x100819088 // > @ 0x100819898 // > @ 0x10081a090 // > @ 0x10081a888 // > @ 0x10081b080 // > @ 0x10081b878 // > @ 0x10081c070 // > @ 0x10081c8a8 // > @ 0x10081d0a0 // > @ 0x10081d8d8 // > @ 0x10081e0d0 // > @ 0x10081e8c8 // > @ 0x10081f0c0 // > @ 0x10081f8b8 // > @ 0x1008200b0 // > @ 0x1008208a8 // > @ 0x1008210a0 // > @ 0x100821898 // > @ 0x1008221b8 // > @ 0x1008229b0 // > @ 0x100823a30 // > @ 0x100824228 // > @ 0x1008253b0 // // 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 __fastcall SetupTriggerPopup::updateDefaultTriggerValues(SetupTriggerPopup *a1) { cocos2d::CCArray *m_gameObjects; // x20 cocos2d::CCArray *v3; // x0 cocos2d::ccArray *v4; // x9 __int64 v5; // x8 unsigned __int64 v6; // x22 unsigned __int64 v7; // x23 int v8; // w21 cocos2d::ccArray *v9; // x9 __int64 v10; // x8 float TriggerValue; // s0 GameObject **v12; // x24 unsigned __int64 v13; // x25 float v14; // s10 bool v15; // zf cocos2d::CCArray *v16; // x0 cocos2d::ccArray *v17; // x9 __int64 v18; // x8 unsigned __int64 v19; // x23 unsigned __int64 v20; // x24 intptr_t v21; // x21 cocos2d::ccArray *v22; // x9 __int64 v23; // x8 GameObject **v24; // x22 unsigned __int64 v25; // x25 cocos2d::CCDictionary *v26; // x22 float *v27; // x0 cocos2d::CCArray *v28; // x0 cocos2d::ccArray *data; // x9 __int64 num; // x8 unsigned __int64 arr; // x21 unsigned __int64 v32; // x22 __int64 v33; // x20 float v34; // s0 cocos2d::CCArray *v35; // x0 cocos2d::ccArray *v36; // x9 __int64 v37; // x8 unsigned __int64 v38; // x22 unsigned __int64 v39; // x23 intptr_t v40; // x20 cocos2d::CCDictionary *m_triggerValues; // x21 float *v42; // x0 if ( a1->m_gameObject ) { m_gameObjects = (cocos2d::CCArray *)sub_10024A15C(a1); sub_10024A2D0(m_gameObjects, a1->m_gameObject); if ( !m_gameObjects ) { LABEL_35: v28 = cocos2d::CCDictionary::allKeys(a1->m_inputNodes); if ( v28 ) { data = v28->data; num = data->num; if ( (_DWORD)num ) { arr = (unsigned __int64)data->arr; v32 = arr + 8 * num - 8; do { if ( !*(_QWORD *)arr ) break; v33 = *(unsigned int *)(*(_QWORD *)arr + 56LL); v34 = ((float (__fastcall *)(SetupTriggerPopup *, __int64))a1->getValue)(a1, v33); SetupTriggerPopup::updateValueControls(a1, v33, v34); arr += 8LL; } while ( arr <= v32 ); } } v35 = cocos2d::CCDictionary::allKeys(a1->m_valueToggles); if ( v35 ) { v36 = v35->data; v37 = v36->num; if ( (_DWORD)v37 ) { v38 = (unsigned __int64)v36->arr; v39 = v38 + 8 * v37 - 8; do { if ( !*(_QWORD *)v38 ) break; v40 = *(int *)(*(_QWORD *)v38 + 56LL); if ( ((float (__fastcall *)(SetupTriggerPopup *))a1->getValue)(a1) == 0.0 ) { m_triggerValues = a1->m_triggerValues; v42 = sub_10000C340(0.0); cocos2d::CCDictionary::setObject(m_triggerValues, (cocos2d::CCObject *)v42, v40); } else { ((void (__fastcall *)(SetupTriggerPopup *, intptr_t, __int64))a1->updateToggleItem)(a1, v40, 1); } v38 += 8LL; } while ( v38 <= v39 ); } } return; } } else { m_gameObjects = a1->m_gameObjects; if ( !m_gameObjects ) goto LABEL_35; } if ( !(unsigned int)sub_10024A36C(m_gameObjects) ) goto LABEL_35; v3 = cocos2d::CCDictionary::allKeys(a1->m_inputNodes); if ( v3 ) { v4 = v3->data; v5 = v4->num; if ( (_DWORD)v5 ) { v6 = (unsigned __int64)v4->arr; v7 = v6 + 8 * v5 - 8; do { if ( !*(_QWORD *)v6 ) break; v8 = *(_DWORD *)(*(_QWORD *)v6 + 56LL); v9 = m_gameObjects->data; v10 = v9->num; TriggerValue = -99999.0; if ( !(_DWORD)v10 ) goto LABEL_20; v12 = (GameObject **)v9->arr; v13 = (unsigned __int64)&v12[v10 - 1]; v14 = -99999.0; while ( *v12 ) { TriggerValue = SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)v3, v8, *v12); if ( v14 != -99999.0 ) { v15 = v14 == TriggerValue; TriggerValue = v14; if ( !v15 ) goto LABEL_21; } ++v12; v14 = TriggerValue; if ( (unsigned __int64)v12 > v13 ) goto LABEL_19; } TriggerValue = v14; LABEL_19: if ( TriggerValue != -99998.0 ) LABEL_20: SetupTriggerPopup::updateValueControls(a1, v8, TriggerValue); LABEL_21: v6 += 8LL; } while ( v6 <= v7 ); } } v16 = cocos2d::CCDictionary::allKeys(a1->m_valueToggles); if ( v16 ) { v17 = v16->data; v18 = v17->num; if ( (_DWORD)v18 ) { v19 = (unsigned __int64)v17->arr; v20 = v19 + 8 * v18 - 8; do { if ( !*(_QWORD *)v19 ) break; v21 = *(int *)(*(_QWORD *)v19 + 56LL); v22 = m_gameObjects->data; v23 = v22->num; if ( (_DWORD)v23 ) { v24 = (GameObject **)v22->arr; v25 = (unsigned __int64)&v24[v23 - 1]; while ( *v24 ) { if ( SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)v16, v21, *v24) == 0.0 ) { v26 = a1->m_triggerValues; v27 = sub_10000C340(0.0); cocos2d::CCDictionary::setObject(v26, (cocos2d::CCObject *)v27, v21); goto LABEL_33; } if ( (unsigned __int64)++v24 > v25 ) break; } } v16 = (cocos2d::CCArray *)((__int64 (__fastcall *)(SetupTriggerPopup *, intptr_t, __int64))a1->updateToggleItem)( a1, v21, 1); LABEL_33: v19 += 8LL; } while ( v19 <= v20 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source