// // GJItemIcon::toggleEnabledState from 0x10036e660 to 0x10036e705 (165 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 __fastcall GJItemIcon::toggleEnabledState(GJItemIcon *a1, bool a2) { cocos2d::CCSprite *m_player; // rbx __int64 v3; // rax __int64 v4; // rbx unsigned int v5; // r14d __int64 v6; // rax _WORD v7[14]; // [rsp-1Ch] [rbp-1Ch] BYREF if ( !a1->m_isIcon ) { m_player = a1->m_player; if ( a2 ) { LOBYTE(v7[1]) = -1; v7[0] = -1; } else { memset(v7, 100, 3); } ((void (__fastcall *)(cocos2d::CCSprite *, _WORD *))m_player->setColor)(m_player, v7); v3 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))m_player->getChildren)(m_player); if ( v3 ) { v4 = v3; if ( (unsigned int)sub_100720070(v3) ) { v5 = 0; do { v6 = sub_1007200C0(v4, v5); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 328LL))(v6, 1); ++v5; } while ( v5 < (unsigned int)sub_100720070(v4) ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source