// // GJItemIcon::toggleEnabledState from 0x14027b570 to 0x14027b62c (188 bytes) // // 5 xrefs: // > GJGarageLayer::setupSpecialPage @ 0x140276f82 // > GJGarageLayer::onToggleItem @ 0x1402779ce // > @ 0x1406876b0 // > @ 0x1406876c0 // > @ 0x1406d1130 // // 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 GJItemIcon::toggleEnabledState(GJItemIcon *a1, bool a2) { cocos2d::CCSprite *m_player; // rbx __int16 *v3; // rdx cocos2d::CCArray *v4; // rax cocos2d::CCArray *v5; // rdi unsigned int v6; // ebx struct cocos2d::CCObject *v7; // rax __int64 v8; // rdx _BYTE v9[3]; // [rsp+30h] [rbp+8h] BYREF __int16 v10; // [rsp+40h] [rbp+18h] BYREF char v11; // [rsp+42h] [rbp+1Ah] if ( !a1->m_isIcon ) { m_player = a1->m_player; if ( a2 ) { v3 = &v10; v10 = -1; v11 = -1; } else { memset(v9, 100, sizeof(v9)); v3 = (__int16 *)v9; } m_player->setColor(&m_player->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)v3); v4 = m_player->getChildren(m_player); v5 = v4; if ( v4 ) { v6 = 0; if ( cocos2d::CCArray::count(v4) ) { do { v7 = cocos2d::CCArray::objectAtIndex(v5, v6); LOBYTE(v8) = 1; ((void (__fastcall *)(struct cocos2d::CCObject *, __int64))v7->__vftable[4].update)(v7, v8); ++v6; } while ( v6 < cocos2d::CCArray::count(v5) ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source