// // UIOptionsLayer::ccTouchBegan from 0x1002b4db0 to 0x1002b4ec4 (276 bytes) // // 2 xrefs: // > sub_1002B4ED0 @ 0x1002b4edb // > @ 0x100902bb0 // // 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 UIOptionsLayer::ccTouchBegan(UIOptionsLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { bool m_dual; // bl __int64 v4; // r12 __int64 v5; // r15 int v6; // eax double v7; // xmm0_8 unsigned __int64 *v8; // rax char v10; // [rsp+8h] [rbp-48h] BYREF unsigned __int64 v11; // [rsp+10h] [rbp-40h] BYREF double v12; // [rsp+18h] [rbp-38h] BYREF cocos2d::CCTouch *v13; // [rsp+20h] [rbp-30h] cocos2d::CCPoint v14; // 0:xmm0_8.8 v13 = a2; cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)&v10); v14 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v11, (const cocos2d::CCPoint *)a1); m_dual = a1->m_dual; v4 = 0; while ( 1 ) { v5 = *((_QWORD *)&a1->m_uiNode1 + v4); if ( (*(unsigned __int8 (__fastcall **)(__int64, double))(*(_QWORD *)v5 + 336LL))(v5, *(double *)&v14) ) { v14 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v12, (const cocos2d::CCPoint *)v5); if ( GJUINode::touchTest((GJUINode *)v5, v14) ) break; } if ( (unsigned int)v4 <= 2 ) { ++v4; if ( m_dual ) continue; } return 1; } if ( a1->m_dual ) { v6 = (*(__int64 (__fastcall **)(__int64, double *))(*(_QWORD *)v5 + 64LL))(v5, &v12); UIOptionsLayer::toggleUIGroup(a1, v6); } *(_DWORD *)(v5 + 352) = v13->m_nId; v7 = sub_10028CC90((_QWORD *)(v5 + 364), (double *)&v11); v8 = (unsigned __int64 *)(*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v5 + 192LL))(v5, v7); sub_10028CD00(&v12, &v11, v8); sub_10028CC90((_QWORD *)(v5 + 356), &v12); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source