// // GJRotationControl::ccTouchBegan from 0x1003faa48 to 0x1003fab3c (244 bytes) // // 2 xrefs: // > sub_1003FAB3C @ 0x1003fab40 // > @ 0x100814d00 // // 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::ccTouchBegan(GJRotationControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { bool v3; // w20 float v6; // s0 double v7; // d0 GJRotationControlDelegate *m_delegate; // x0 cocos2d::CCSprite *m_controlSprite; // x19 cocos2d::CCSpriteFrameCache *v10; // x0 cocos2d::CCSpriteFrame *v11; // x0 float32x2_t v13; // [xsp+0h] [xbp-30h] BYREF float32x2_t v14; // [xsp+8h] [xbp-28h] BYREF if ( a1->m_touchID != -1 ) return 0; cocos2d::CCTouch::getLocation(a2); cocos2d::CCNode::convertToNodeSpace(a1, (const cocos2d::CCPoint *)&v14); sub_1000229D0(&v14, (double *)&v13); v6 = cocos2d::ccpDistance((const cocos2d::CCPoint *)&v14, &a1->m_controlPosition); v3 = v6 < 24.0; if ( v6 < 24.0 ) { a1->m_startingRotation = a1->m_currentRotation; sub_1000229F0(&v14, (float32x2_t *)&a1->m_controlPosition, &v13); v7 = sub_1000229D0(&a1->m_cursorDifference, (double *)&v13); a1->m_touchID = a2->m_nId; m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJRotationControlDelegate *, double))m_delegate->angleChangeBegin)(m_delegate, v7); m_controlSprite = a1->m_controlSprite; v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, "GJ_rotationControlBtn02_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_controlSprite->setDisplayFrame)( m_controlSprite, v11); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source