// // GJUINode::touchTest from 0x1404cf1b0 to 0x1404cf2b4 (260 bytes) // // 3 xrefs: // > UIOptionsLayer::ccTouchBegan @ 0x1402a3db3 // > UILayer::processUINodeTouch @ 0x1404ce639 // > @ 0x1406dd5bc // // 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 GJUINode::touchTest(GJUINode *a1, cocos2d::CCPoint a2) { double v4; // xmm0_8 __int64 v5; // rax __int64 v6; // rbx _BOOL8 v7; // rdx cocos2d::CCPoint v8; // rax cocos2d::CCPoint v9; // [rsp+30h] [rbp+8h] BYREF cocos2d::CCPoint v10; // [rsp+40h] [rbp+18h] BYREF if ( !cocos2d::CCRect::containsPoint(&a1->m_rect, *(const struct cocos2d::CCPoint **)&a2) ) return 0; if ( a1->m_oneButton ) return 1; if ( a1->m_modeB && (a1->m_snap || !a1->m_swiping) ) { v4 = cocos2d::CCPoint::CCPoint(&v10); v6 = v5; cocos2d::CCPoint::CCPoint(*(float *)&v4, 0.0); cocos2d::CCPoint::operator+(v6, &v9); a1->m_firstSprite->setPosition_0(a1->m_firstSprite, &v9); LOBYTE(v7) = 1; a1->m_firstSprite->setVisible(a1->m_firstSprite, v7); a1->m_swiping = 1; return 5; } else { cocos2d::CCPoint::CCPoint(&v9); return GJUINode::activeTouchTest(a1, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source