// // UILayer::ccTouchEnded from 0x1004c9d30 to 0x1004c9ea9 (377 bytes) // // 2 xrefs: // > sub_1004C9EB0 @ 0x1004c9ebc // > @ 0x100950b78 // // 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 // void __fastcall UILayer::ccTouchEnded(UILayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { double v3; // xmm1_8 int m_nId; // eax int v5; // ebx unsigned int v6; // r12d bool v7; // al __int64 v8; // [rsp+0h] [rbp-40h] BYREF cocos2d::CCTouch *v9; // [rsp+8h] [rbp-38h] double v10[6]; // [rsp+10h] [rbp-30h] BYREF m_nId = a2->m_nId; if ( a1->m_inPlatformer ) { if ( a1->m_dualMode || a1->m_p1TouchId != m_nId ) { cocos2d::CCTouch::getLocation((cocos2d::CCTouch *)v10); v5 = a2->m_nId; if ( a1->m_dualMode ) { v9 = a2; v6 = 0; do { sub_1007200C0(a1->m_uiNodes, v6); sub_10028CC60(&v8, v10); v7 = UILayer::processUINodeTouch(a1, Ended, v5, *(cocos2d::CCPoint *)&v9->m_timestamp, (GJUINode *)&v8, v3); if ( v6 > 2 ) break; ++v6; } while ( !v7 ); } else { sub_1007200C0(a1->m_uiNodes, 0); sub_10028CC60(&v8, v10); UILayer::processUINodeTouch(a1, Ended, v5, *(cocos2d::CCPoint *)&a2->m_timestamp, (GJUINode *)&v8, v3); } return; } LABEL_10: a1->m_p1TouchId = -1; GJBaseGameLayer::queueButton(a1->m_gameLayer, 1, 0, 0, a2->m_timestamp); return; } if ( a1->m_p1TouchId == m_nId ) goto LABEL_10; if ( a1->m_p2TouchId == m_nId ) { a1->m_p2TouchId = -1; GJBaseGameLayer::queueButton(a1->m_gameLayer, 1, 0, 1, a2->m_timestamp); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source