// // cocos2d::extension::CCControlButton::setPreferredSize from 0x100354060 to 0x100354118 (184 bytes) // // 2 xrefs: // > @ 0x100916160 // > @ 0x1009478a8 // // 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 cocos2d::extension::CCControlButton::setPreferredSize( cocos2d::extension::CCControlButton *a1, cocos2d::CCSize a2) { __int64 v2; // rax __int64 v3; // rsi __int64 v4; // rax __int64 v5; // r13 __int64 v6; // r12 _QWORD v7[6]; // [rsp+0h] [rbp-30h] BYREF v7[0] = v2; if ( *(float *)v3 == 0.0 && *(float *)(v3 + 4) == 0.0 ) { HIBYTE(a1[1].m_uID) = 1; } else { HIBYTE(a1[1].m_uID) = 0; v4 = *(_QWORD *)&a1[1].m_obPosition.y; if ( v4 ) { v5 = *(_QWORD *)(v4 + 56); while ( v5 ) { v6 = *(_QWORD *)(v5 + 264); v5 = *(_QWORD *)(v5 + 288); sub_10028CFC0(v7, (_QWORD *)v3); (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v6 + 1000LL))(v6, v7); } } } sub_10028CFF0(&a1[1].m_uIndexInArray, (_QWORD *)v3); ((void (__fastcall *)(cocos2d::extension::CCControlButton *))a1->needsLayout)(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source