// // GJBaseGameLayer::groupStickyObjects from 0x1001f2d50 to 0x1001f2e60 (272 bytes) // // 2 xrefs: // > GJBaseGameLayer::assignNewStickyGroups @ 0x1001f2fd4 // > EditorUI::onGroupSticky @ 0x1003c7b74 // // 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::groupStickyObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2) { __int64 v4; // x0 cocos2d::CCObject *v5; // x21 unsigned int v6; // w23 __int64 v7; // x22 __int64 v8; // x0 int v9; // w8 __int64 v11; // x22 __int64 v12; // x0 int v13; // w8 v4 = sub_10024A36C(a2); v5 = (cocos2d::CCObject *)sub_10024A300(v4); if ( !(unsigned int)sub_10024A36C(a2) ) goto LABEL_12; v6 = 0; v7 = 0; do { v8 = sub_10024A388(a2, v7); v9 = *(_DWORD *)(v8 + 872); if ( v6 ) { if ( v9 >= 1 && v9 != v6 ) { GJBaseGameLayer::ungroupStickyObjects(a1, a2); goto LABEL_12; } } else { v6 = *(_DWORD *)(v8 + 872); } v7 = (unsigned int)(v7 + 1); } while ( (unsigned int)v7 < (unsigned int)sub_10024A36C(a2) ); if ( !v6 ) { LABEL_12: v6 = a1->m_lastUsedLinkedID + 1; a1->m_lastUsedLinkedID = v6; } if ( (unsigned int)sub_10024A36C(a2) ) { v11 = 0; do { v12 = sub_10024A388(a2, v11); v13 = *(_DWORD *)(v12 + 1028); if ( v13 != 747 && v13 != 749 ) { *(_DWORD *)(v12 + 872) = v6; sub_10024A2D0(v5, v12); } v11 = (unsigned int)(v11 + 1); } while ( (unsigned int)v11 < (unsigned int)sub_10024A36C(a2) ); } cocos2d::CCDictionary::setObject(a1->m_linkedGroupDict, v5, v6); }
GD Web Decomp Icon

GD Web Decomp

Raw Source