// // GJBaseGameLayer::activateResetTrigger from 0x10014b910 to 0x10014ba69 (345 bytes) // // 1 xrefs: // > EffectGameObject::triggerObject @ 0x1001b9de2 // // 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 GJBaseGameLayer::activateResetTrigger(GJBaseGameLayer *a1, EffectGameObject *a2) { int m_targetGroupID; // ecx intptr_t v3; // r15 cocos2d::CCArray *v5; // r14 cocos2d::ccArray *data; // rax int **arr; // r15 unsigned __int64 v8; // r12 int *v9; // r14 GJEffectManager *m_effectManager; // rdi int v11; // esi int m_uniqueID; // edx m_targetGroupID = 9999; if ( a2->m_targetGroupID < 9999 ) m_targetGroupID = a2->m_targetGroupID; v3 = 0; if ( m_targetGroupID > 0 ) v3 = (unsigned int)m_targetGroupID; v5 = a1->m_groups.__begin_[v3]; if ( v5 || (v5 = (cocos2d::CCArray *)sub_10071F9E0(a1, a2), cocos2d::CCDictionary::setObject(a1->m_groupDict, v5, v3), (a1->m_groups.__begin_[v3] = v5) != nullptr) ) { if ( (unsigned int)sub_100720070(v5) ) { data = v5->data; if ( data->num ) { arr = (int **)data->arr; v8 = (unsigned __int64)&arr[data->num - 1]; do { v9 = *arr; if ( !*arr ) return; if ( v9[257] == 2063 ) { GJEffectManager::removeTriggeredID(a1->m_effectManager, v9[229], a1->m_player1->m_uniqueID); m_effectManager = a1->m_effectManager; v11 = v9[229]; m_uniqueID = a1->m_player2->m_uniqueID; } else { if ( (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v9 + 1784LL))(*arr) != 30 && (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v9 + 1784LL))(v9) != 21 ) { goto LABEL_17; } m_effectManager = a1->m_effectManager; v11 = v9[229]; m_uniqueID = 0; } GJEffectManager::removeTriggeredID(m_effectManager, v11, m_uniqueID); (*(void (__fastcall **)(int *))(*(_QWORD *)v9 + 1496LL))(v9); LABEL_17: ++arr; } while ( (unsigned __int64)arr <= v8 ); } } } }