// // GJUINode::touchTest from 0x1004ca2c0 to 0x1004ca404 (324 bytes) // // 2 xrefs: // > UIOptionsLayer::ccTouchBegan @ 0x1002b4e2d // > UILayer::processUINodeTouch @ 0x1004c9f97 // // 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 // int __fastcall GJUINode::touchTest(GJUINode *a1, cocos2d::CCPoint a2) { float *v2; // rsi double v3; // xmm1_8 bool v4; // cl int result; // eax cocos2d::CCPoint v6; // xmm0_8 cocos2d::CCSprite *m_firstSprite; // r14 unsigned __int64 v8; // [rsp+0h] [rbp-40h] BYREF __int64 v9; // [rsp+8h] [rbp-38h] BYREF unsigned __int64 v10[6]; // [rsp+10h] [rbp-30h] BYREF v4 = sub_10028D2D0((float *)&a1->m_rect.origin, *(double *)&a2, v3, v2); result = 0; if ( v4 ) { result = 1; if ( !a1->m_oneButton ) { if ( a1->m_modeB && (a1->m_snap || !a1->m_swiping) ) { sub_10028CC60(&v8, (double *)v2); m_firstSprite = a1->m_firstSprite; sub_10028CBE0((float *)v10, 0.0, 40.0); sub_10028CCE0((double *)&v9, &v8, v10); ((void (__fastcall *)(cocos2d::CCSprite *, __int64 *))m_firstSprite->setPosition)(m_firstSprite, &v9); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_firstSprite->setVisible)(a1->m_firstSprite, 1); a1->m_swiping = 1; return 5; } else { sub_10028CC60(v10, (double *)v2); if ( a1->m_modeB ) { *(double *)&v6 = sub_10028CC60(&v9, (double *)v10); return GJUINode::activeRangeTouchTest(a1, v6); } else { result = 5; if ( a1->m_deadzone <= fabs(*(float *)v10) ) return ((LODWORD(v10[0]) | 0x300000000LL) - (unsigned __int64)COERCE_UNSIGNED_INT(0.0)) >> 32; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source