// // GJBaseGameLayer::groupStickyObjects from 0x14032d310 to 0x14032d42e (286 bytes) // // 4 xrefs: // > EditorUI::onGroupSticky @ 0x1401b4fb1 // > EditorUI::handleEditorAction @ 0x1401c3876 // > GJBaseGameLayer::assignNewStickyGroups @ 0x14032d5db // > @ 0x14091f3d0 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:30:30 +0000 // void __fastcall GJBaseGameLayer::groupStickyObjects(__int64 a1, cocos2d::CCArray *a2) { unsigned int v4; // eax unsigned int v5; // ebp cocos2d::CCArray *v6; // r15 unsigned int v7; // ebx unsigned int v8; // edi struct cocos2d::CCObject *v9; // rax int v10; // eax struct cocos2d::CCObject *v11; // rax int v12; // ecx v4 = cocos2d::CCArray::count(a2); v5 = 0; v6 = cocos2d::CCArray::createWithCapacity(v4); v7 = 0; v8 = 0; if ( cocos2d::CCArray::count(a2) ) { do { v9 = cocos2d::CCArray::objectAtIndex(a2, v8); if ( v7 ) { v10 = *((_DWORD *)v9 + 220); if ( v10 > 0 && v10 != v7 ) { GJBaseGameLayer::ungroupStickyObjects(a1, a2); goto LABEL_8; } } else { v7 = *((_DWORD *)v9 + 220); } ++v8; } while ( v8 < cocos2d::CCArray::count(a2) ); if ( v7 ) goto LABEL_9; } LABEL_8: v7 = ++*(_DWORD *)(a1 + 4264); LABEL_9: if ( cocos2d::CCArray::count(a2) ) { do { v11 = cocos2d::CCArray::objectAtIndex(a2, v5); v12 = *((_DWORD *)v11 + 259); if ( v12 != 747 && v12 != 749 ) { *((_DWORD *)v11 + 220) = v7; cocos2d::CCArray::addObject(v6, v11); } ++v5; } while ( v5 < cocos2d::CCArray::count(a2) ); } cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 4256), v6, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source