// // LevelEditorLayer::addTriggersWithGroupID from 0x3727d4 to 0x3728b4 (224 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::addTriggersWithGroupID( LevelEditorLayer *a1, std::unordered_set *a2, cocos2d::CCArray *a3, std::unordered_map *a4, int a5) { cocos2d::CCArray *AllObjects; // r0 cocos2d::ccArray *data; // r3 cocos2d::CCObject **arr; // r6 int v11; // r4 int v12; // t1 int M_nxt; // r5 std::__detail::_Hash_node_base *i; // r5 cocos2d::CCObject **v15; // [sp+0h] [bp-14h] unsigned int v16; // [sp+8h] [bp-Ch] BYREF AllObjects = LevelEditorLayer::getAllObjects(a1); if ( AllObjects ) { data = AllObjects->data; if ( data->num ) { arr = data->arr; v15 = &arr[data->num] + 0x3FFFFFFF; while ( arr <= v15 ) { v12 = (int)*arr++; v11 = v12; if ( !v12 ) break; if ( *(_DWORD *)(v11 + 1076) == 1 && (a5 <= 0 || a5 == *(_DWORD *)(v11 + 884)) && !sub_3651E2(a4, *(_DWORD *)(v11 + 772)) ) { M_nxt = *(_DWORD *)(v11 + 1276); if ( (sub_3652CE(a2, M_nxt) || (M_nxt = *(_DWORD *)(v11 + 1280), sub_3652CE(a2, M_nxt))) && M_nxt ) { LABEL_19: if ( M_nxt > 0 ) { cocos2d::CCArray::addObject(a3, (cocos2d::CCObject *)v11); v16 = *(_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[]( a4, &v16) = M_nxt; } } else if ( *(_DWORD *)(v11 + 884) == 1268 ) { for ( i = a2->_M_h._M_before_begin._M_nxt; i; i = i->_M_nxt ) { if ( SpawnTriggerGameObject::getRemapWithTarget((SpawnTriggerGameObject *)v11, (int)i[1]._M_nxt) ) { M_nxt = (int)i[1]._M_nxt; goto LABEL_19; } } } } } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source