// // GJScaleControl::ccTouchBegan from 0x100052630 to 0x1000527e8 (440 bytes) // // 2 xrefs: // > sub_1000527F0 @ 0x1000527fc // > @ 0x1008b1888 // // 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 GJScaleControl::ccTouchBegan(GJScaleControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { double v6; // xmm0_8 cocos2d::CCString *v7; // rax GJScaleControlDelegate *m_delegate; // rdi ScaleButtonType v9; // r14 cocos2d::CCString *v10; // rax char v11; // [rsp-48h] [rbp-48h] __int64 v12; // [rsp-40h] [rbp-40h] BYREF __int64 v13; // [rsp-38h] [rbp-38h] BYREF if ( a1->m_touchID != -1 ) return 0; cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)&v12); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v13, (const cocos2d::CCPoint *)a1); v6 = sub_10028CC90(); if ( ((unsigned __int8 (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *, double))a1->m_sliderX->ccTouchBegan)( a1->m_sliderX, a2, a3, v6) ) { a1->m_touchID = a2->m_nId; Slider::getValue(a1->m_sliderX); v7 = (cocos2d::CCString *)sub_1007AB580("%.02f", v11); a1->m_valueX = cocos2d::CCString::floatValue(v7); m_delegate = a1->m_delegate; v9 = X; if ( !m_delegate ) goto LABEL_9; goto LABEL_8; } if ( ((unsigned __int8 (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->m_sliderY->ccTouchBegan)( a1->m_sliderY, a2, a3) ) { a1->m_touchID = a2->m_nId; Slider::getValue(a1->m_sliderY); v10 = (cocos2d::CCString *)sub_1007AB580("%.02f", v11); a1->m_valueY = cocos2d::CCString::floatValue(v10); m_delegate = a1->m_delegate; v9 = Y; if ( !m_delegate ) { LABEL_9: a1->m_scaleButtonType = v9; return 1; } LABEL_8: ((void (__fastcall *)(GJScaleControlDelegate *))m_delegate->scaleChangeBegin)(m_delegate); goto LABEL_9; } if ( ((unsigned __int8 (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->m_sliderXY->ccTouchBegan)( a1->m_sliderXY, a2, a3) ) { a1->m_touchID = a2->m_nId; m_delegate = a1->m_delegate; v9 = XY; if ( !m_delegate ) goto LABEL_9; goto LABEL_8; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source