// // GJScaleControl::ccTouchBegan from 0x14012a560 to 0x14012a765 (517 bytes) // // 2 xrefs: // > @ 0x140552be0 // > @ 0x1406c9b04 // // 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 GJScaleControl::ccTouchBegan(GJScaleControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { struct cocos2d::CCPoint v6; // rax float Value; // xmm0_4 cocos2d::CCString *v8; // rax float v9; // xmm0_4 __int64 v10; // rcx float v12; // xmm0_4 cocos2d::CCString *v13; // rax float v14; // xmm0_4 __int64 v15; // rcx __int64 v16; // rcx char v17; // [rsp+30h] [rbp+8h] BYREF struct cocos2d::CCPoint v18; // [rsp+48h] [rbp+20h] BYREF if ( LODWORD(a1->m_obContentSize.height) != -1 ) return 0; cocos2d::CCTouch::getLocation(a2); v6 = cocos2d::CCNode::convertToNodeSpace((GJScaleControl *)((char *)a1 - 320), &v18); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v17, v6); if ( (*(unsigned __int8 (__fastcall **)(__int64, cocos2d::CCTouch *, cocos2d::CCEvent *))(*(_QWORD *)(*(_QWORD *)&a1->m_fSkewY + 320LL) + 8LL))( *(_QWORD *)&a1->m_fSkewY + 320LL, a2, a3) ) { LODWORD(a1->m_obContentSize.height) = a2->m_nId; Value = SliderThumb::getValue(*(SliderThumb **)(*(_QWORD *)(*(_QWORD *)&a1->m_fSkewY + 408LL) + 456LL)); v8 = cocos2d::CCString::createWithFormat( "%.02f", (float)((float)((float)(a1->m_sInverse.d - a1->m_sInverse.tx) * Value) + a1->m_sInverse.tx)); v9 = cocos2d::CCString::floatValue(v8); v10 = *(_QWORD *)&a1->m_sInverse.b; a1->m_sAdditionalTransform.a = v9; if ( v10 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 24LL))(v10); HIWORD(a1->m_sAdditionalTransform.ty) = 0; return 1; } if ( (*(unsigned __int8 (__fastcall **)(__int64, cocos2d::CCTouch *, cocos2d::CCEvent *))(*(_QWORD *)(*(_QWORD *)&a1->m_obAnchorPointInPoints.y + 320LL) + 8LL))( *(_QWORD *)&a1->m_obAnchorPointInPoints.y + 320LL, a2, a3) ) { LODWORD(a1->m_obContentSize.height) = a2->m_nId; v12 = SliderThumb::getValue(*(SliderThumb **)(*(_QWORD *)(*(_QWORD *)&a1->m_obAnchorPointInPoints.y + 408LL) + 456LL)); v13 = cocos2d::CCString::createWithFormat( "%.02f", (float)((float)((float)(a1->m_sInverse.d - a1->m_sInverse.tx) * v12) + a1->m_sInverse.tx)); v14 = cocos2d::CCString::floatValue(v13); v15 = *(_QWORD *)&a1->m_sInverse.b; a1->m_sAdditionalTransform.b = v14; if ( v15 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 24LL))(v15); HIWORD(a1->m_sAdditionalTransform.ty) = 1; return 1; } if ( !(*(unsigned __int8 (__fastcall **)(__int64, cocos2d::CCTouch *, cocos2d::CCEvent *))(*(_QWORD *)(*(_QWORD *)&a1->m_obAnchorPoint.y + 320LL) + 8LL))( *(_QWORD *)&a1->m_obAnchorPoint.y + 320LL, a2, a3) ) return 0; v16 = *(_QWORD *)&a1->m_sInverse.b; LODWORD(a1->m_obContentSize.height) = a2->m_nId; if ( v16 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v16 + 24LL))(v16); HIWORD(a1->m_sAdditionalTransform.ty) = 2; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source