// // GJRotationControl::init from 0x100051910 to 0x1000519f7 (231 bytes) // // 1 xrefs: // > @ 0x1008b0fe0 // // 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 // bool __fastcall GJRotationControl::init(GJRotationControl *a1) { bool result; // al bool v2; // r12 double v3; // xmm0_8 cocos2d::CCSprite *v4; // rax double v5; // xmm0_8 _BYTE v6[40]; // [rsp+8h] [rbp-28h] BYREF result = cocos2d::CCLayer::init(a1); if ( result ) { v2 = result; ((void (__fastcall *)(GJRotationControl *, __int64))a1->setTouchEnabled)(a1, 1); sub_10028CBE0(v6, 60.0, 0.0); v3 = sub_10028CC90(); ((void (__fastcall *)(GJRotationControl *, __int64 *, double))a1->setAnchorPoint)(a1, &qword_10099EC08, v3); v4 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_rotationControlBtn01_001.png"); a1->m_controlSprite = v4; ((void (__fastcall *)(GJRotationControl *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v4, 1); *(_QWORD *)&a1->m_startingRotation = 0; sub_10028CBE0(v6, 60.0, -0.0); v5 = sub_10028CC90(); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *, double))a1->m_controlSprite->setPosition)( a1->m_controlSprite, &a1->m_controlPosition, v5); return v2; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source