// // GJItemIcon::toggleEnabledState from 0x793220 to 0x793304 (228 bytes) // // 3 xrefs: // > GJGarageLayer::onToggleItem @ 0x7933b0 // > GJGarageLayer::setupSpecialPage @ 0x79741c // > @ 0xa43e8 // // 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; // x20 void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x2 unsigned int v4; // w19 cocos2d::CCArray *v5; // x20 unsigned int v6; // w1 __int64 v7; // x0 _BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF if ( !a1->m_isIcon ) { m_player = a1->m_player; setColor = m_player->setColor; if ( a2 ) { v8[0] = -1; v8[1] = -1; v8[2] = -1; } else { memset(v8, 100, 3); } v4 = 0; setColor(m_player, (const cocos2d::ccColor3B *)v8); v5 = m_player->getChildren(m_player); if ( v5 ) { while ( v4 < (unsigned int)cocos2d::CCArray::count(v5) ) { v6 = v4++; v7 = cocos2d::CCArray::objectAtIndex(v5, v6); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 328LL))(v7, 1); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source