// // LevelEditorLayer::addTriggersWithTargetGroupID from 0x3726e4 to 0x3727ce (234 bytes) // // 0 xrefs: // // 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 LevelEditorLayer::addTriggersWithTargetGroupID( LevelEditorLayer *a1, std::unordered_set *a2, std::unordered_set *a3, cocos2d::CCArray *a4, std::unordered_map *a5, int a6) { cocos2d::CCArray *AllObjects; // r0 cocos2d::ccArray *data; // r2 cocos2d::CCObject **arr; // r4 int v11; // r8 int v12; // t1 int v13; // r5 std::__detail::_Hash_node_base *i; // r2 cocos2d::CCObject **v15; // [sp+0h] [bp-1Ch] std::__detail::_Hash_node_base *v17; // [sp+Ch] [bp-10h] unsigned int v18; // [sp+10h] [bp-Ch] BYREF AllObjects = LevelEditorLayer::getAllObjects(a1); if ( AllObjects ) { data = AllObjects->data; if ( data->num ) { arr = data->arr; v15 = &arr[data->num] + 0x3FFFFFFF; LABEL_4: while ( arr <= v15 ) { v12 = (int)*arr++; v11 = v12; if ( !v12 ) break; if ( *(_DWORD *)(v11 + 1076) == 1 && (a6 <= 0 || a6 == *(_DWORD *)(v11 + 884)) && !sub_3651E2(a5, *(_DWORD *)(v11 + 772)) ) { v13 = *(_DWORD *)(v11 + 1276); if ( sub_3652CE(a2, v13) || (v13 = *(_DWORD *)(v11 + 1280), sub_3652CE(a2, v13)) ) { if ( v13 > 0 ) { if ( *(_DWORD *)(v11 + 884) == 1268 ) { for ( i = a3->_M_h._M_before_begin._M_nxt; i; i = v17->_M_nxt ) { v17 = i; if ( SpawnTriggerGameObject::getRemapWithSource((SpawnTriggerGameObject *)v11, (int)i[1]._M_nxt) ) goto LABEL_4; } } cocos2d::CCArray::addObject(a4, (cocos2d::CCObject *)v11); v18 = *(_DWORD *)(v11 + 772); *std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( a5, &v18) = v13; } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source