// // EditorUI::playerTouchBegan from 0x690508 to 0x690640 (312 bytes) // // 1 xrefs: // > @ 0x30480 // // 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 EditorUI::playerTouchBegan(EditorUI *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { cocos2d::CCDirector *v5; // x0 float x; // s9 GameManager *v7; // x0 double v8; // d0 LevelEditorLayer *v9; // x0 double m_timestamp; // d0 LevelEditorLayer *m_editorLayer; // x0 float v12; // [xsp+50h] [xbp+50h] cocos2d::CCPoint v13; // [xsp+58h] [xbp+58h] BYREF cocos2d::CCPoint v14; // 0:kr10_8.8 v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); cocos2d::CCTouch::getLocation(a2); v14 = cocos2d::CCNode::convertToNodeSpace(a1, &v13); cocos2d::CCPoint::operator=(&v13, v14.x, v14.y); x = v13.x; if ( (a1->m_editorLayer->m_gameState.m_isDualMode || (v7 = GameManager::sharedState(), GameManager::getGameVariable(v7, "0011"))) && x > (float)(v12 * 0.5) ) { if ( a1->m_playerTouchID2 == -1 ) { m_timestamp = a2->m_timestamp; m_editorLayer = a1->m_editorLayer; a1->m_playerTouchID2 = a2->m_nId; GJBaseGameLayer::queueButton(m_editorLayer, 1, 1, 1, m_timestamp); } } else if ( a1->m_playerTouchID1 == -1 ) { v8 = a2->m_timestamp; v9 = a1->m_editorLayer; a1->m_playerTouchID1 = a2->m_nId; GJBaseGameLayer::queueButton(v9, 1, 1, 0, v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source