// // GJRotationControl::ccTouchBegan from 0x140129730 to 0x14012982d (253 bytes) // // 2 xrefs: // > @ 0x140553e40 // > @ 0x1406c9a5c // // 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 GJRotationControl::ccTouchBegan(GJRotationControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { struct cocos2d::CCPoint v5; // rax const struct cocos2d::CCPoint *v6; // r8 __int64 v7; // rcx __int64 v8; // rbx cocos2d::CCSpriteFrameCache *v9; // rax struct cocos2d::CCSpriteFrame *v10; // rax char v12; // [rsp+30h] [rbp+8h] BYREF struct cocos2d::CCPoint v13; // [rsp+48h] [rbp+20h] BYREF if ( LODWORD(a1->m_sAdditionalTransform.b) != -1 ) return 0; cocos2d::CCTouch::getLocation(a2); v5 = cocos2d::CCNode::convertToNodeSpace((GJRotationControl *)((char *)a1 - 320), &v13); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v12, v5); if ( cocos2d::ccpDistance((cocos2d *)&v12, (const struct cocos2d::CCPoint *)&a1->m_obAnchorPointInPoints.y, v6) >= 24.0 ) return 0; a1->m_obContentSize.height = a1->m_sAdditionalTransform.a; cocos2d::CCPoint::operator-(&v12, &v13, &a1->m_obAnchorPointInPoints.y); cocos2d::CCPoint::operator=(&a1->m_fSkewY, &v13); v7 = *(_QWORD *)&a1->m_sAdditionalTransform.d; LODWORD(a1->m_sAdditionalTransform.b) = a2->m_nId; if ( v7 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 8LL))(v7); v8 = **(_QWORD **)&a1->m_obAnchorPoint.y; v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v7); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, "GJ_rotationControlBtn02_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v8 + 992))(*(_QWORD *)&a1->m_obAnchorPoint.y, v10); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source