// // EditorUI::playerTouchBegan from 0xbd6a04 to 0xbd6b3c (312 bytes) // // 1 xrefs: // > @ 0x481a8 // // This function is hookable on this platform (idp: arm, 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 13:03:40 +0000 // __int64 __fastcall EditorUI::playerTouchBegan(__int64 a1, __int64 a2) { cocos2d::CCDirector *v4; // x0 float v5; // s9 float v6; // s8 GameManager *v8; // x0 __int64 v9; // [xsp+50h] [xbp+50h] BYREF __int64 v10; // [xsp+58h] [xbp+58h] BYREF __int64 v11; // [xsp+60h] [xbp+60h] BYREF v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard); cocos2d::CCDirector::getWinSize(&v9, v4); cocos2d::CCTouch::getLocation(&v10, (cocos2d::CCTouch *)a2); cocos2d::CCNode::convertToNodeSpace(&v11, (cocos2d::CCNode *)a1, (const cocos2d::CCPoint *)&v10); cocos2d::CCPoint::operator=(&v10, &v11); v5 = *(float *)&v10; v6 = *(float *)&v9 * 0.5; if ( (*(_BYTE *)(*(_QWORD *)(a1 + 1440) + 1010LL) || (v8 = (GameManager *)GameManager::sharedState((GameManager *)*(unsigned __int8 *)(*(_QWORD *)(a1 + 1440) + 1010LL)), (unsigned __int8)GameManager::getGameVariable(v8, "0011"))) && v5 > v6 ) { if ( *(_DWORD *)(a1 + 664) == -1 ) { *(_DWORD *)(a1 + 664) = *(_DWORD *)(a2 + 56); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 1440), 1, 1, 1, *(double *)(a2 + 88)); } } else if ( *(_DWORD *)(a1 + 660) == -1 ) { *(_DWORD *)(a1 + 660) = *(_DWORD *)(a2 + 56); GJBaseGameLayer::queueButton(*(GJBaseGameLayer **)(a1 + 1440), 1, 1, 0, *(double *)(a2 + 88)); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source