// // GJRotationControl::init from 0x1003fa848 to 0x1003fa8fc (180 bytes) // // 1 xrefs: // > @ 0x1008149e0 // // 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) { _BOOL4 v2; // w20 __n128 v3; // q0 __n128 v4; // q1 double v5; // d0 cocos2d::CCSprite *v6; // x0 double v8; // [xsp+8h] [xbp-18h] BYREF v2 = cocos2d::CCLayer::init(a1); if ( v2 ) { v3 = ((__n128 (__fastcall *)(GJRotationControl *, __int64))a1->setTouchEnabled)(a1, 1); v3.n128_u32[0] = 1114636288; v4.n128_u32[0] = 0; sub_100022980(v3, v4, &v8); v5 = sub_1000229D0(&a1->m_controlPosition, &v8); ((void (__fastcall *)(GJRotationControl *, int *, double))a1->setAnchorPoint)(a1, &dword_10086E8B0, v5); v6 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_rotationControlBtn01_001.png"); a1->m_controlSprite = v6; ((void (__fastcall *)(GJRotationControl *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v6, 1); GJRotationControl::setAngle(a1, 0.0); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source