// // GJRotationControl::ccTouchBegan from 0x1401a2a60 to 0x1401a2bc1 (353 bytes) // // 2 xrefs: // > @ 0x140751128 // > @ 0x140919958 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:27:48 +0000 // char __fastcall GJRotationControl::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3) { __int64 Location; // rax __int64 v6; // rcx __int64 v7; // rax const struct cocos2d::CCPoint *v8; // r8 __int64 v9; // rcx cocos2d::CCSpriteFrameCache *v10; // rax struct cocos2d::CCSpriteFrame *v11; // rax char v13; // [rsp+30h] [rbp+8h] BYREF char v14; // [rsp+48h] [rbp+20h] BYREF if ( *(_DWORD *)(a1 + 120) == -1 ) { if ( ControlMenuTouch::began((__int64 *)(a1 + 160), a2, a3) ) return 1; if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 144) + 344LL))(*(_QWORD *)(a1 + 144)) ) { Location = cocos2d::CCTouch::getLocation(a2, &v14); if ( CCTextInputNode::containsTouchPoint(*(_QWORD *)(a1 + 144), Location) ) return 1; } v6 = *(_QWORD *)(a1 + 144); if ( v6 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 1032LL))(v6, 0); cocos2d::CCTouch::getLocation(a2, &v13); cocos2d::CCNode::convertToNodeSpace(a1 - 320, &v14, &v13); cocos2d::CCPoint::operator=(&v13, v7); if ( cocos2d::ccpDistance((cocos2d *)&v13, (const struct cocos2d::CCPoint *)(a1 + 96), v8) < 24.0 ) { *(_DWORD *)(a1 + 112) = *(_DWORD *)(a1 + 116); cocos2d::CCPoint::operator-(&v13, &v14, a1 + 96); cocos2d::CCPoint::operator=(a1 + 88, &v14); v9 = *(_QWORD *)(a1 + 192); *(_DWORD *)(a1 + 120) = *(_DWORD *)(a2 + 56); if ( v9 ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 8LL))(v9); v10 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, "GJ_rotationControlBtn02_001.png"); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(**(_QWORD **)(a1 + 104) + 1008LL))( *(_QWORD *)(a1 + 104), v11); return 1; } } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source