// // LevelEditorLayer::addPlayer2Point from 0x66ea1c to 0x66eaf0 (212 bytes) // // 2 xrefs: // > LevelEditorLayer::postUpdate @ 0x66ece0 // > @ 0x966a8 // // 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 // // local variable allocation has failed, the output may be wrong! void LevelEditorLayer::addPlayer2Point(LevelEditorLayer *a1, cocos2d::CCPoint a2, bool a3) { char v3; // w2 std::vector *v5; // x19 std::vector *m_finish; // x2 cocos2d::CCPoint *v7; // x0 __int64 m_reserveEnd; // x4 float *v9; // x3 _BOOL8 v10; // [xsp+28h] [xbp+28h] if ( v3 ) { v9 = &a1->m_varianceValues.__elems_[1975]; m_finish = a1->m_player2Points.m_finish; goto LABEL_9; } v5 = a1->m_player2Points.m_finish; m_finish = a1->m_player2Points.m_start; if ( m_finish == v5 ) { v9 = &a1->m_varianceValues.__elems_[1975]; LABEL_9: if ( *((std::vector **)v9 + 295) == m_finish ) { v10 = a3; std::vector>::_M_emplace_back_aux<>((void ***)v9 + 293); v5 = a1->m_player2Points.m_finish; *(_QWORD *)&a3 = v10; v7 = v5[-1].m_finish; m_reserveEnd = (__int64)v5[-1].m_reserveEnd; } else { if ( m_finish ) { m_finish->m_start = nullptr; m_reserveEnd = 0; m_finish->m_finish = nullptr; v7 = nullptr; m_finish->m_reserveEnd = nullptr; } else { v7 = nullptr; m_reserveEnd = 0x100B70003LL; } v5 = m_finish + 1; *((_QWORD *)v9 + 294) = m_finish + 1; } goto LABEL_4; } v7 = v5[-1].m_finish; m_reserveEnd = (__int64)v5[-1].m_reserveEnd; LABEL_4: if ( v7 == (cocos2d::CCPoint *)m_reserveEnd ) { std::vector::_M_emplace_back_aux( (__int64)&v5[-1], (const cocos2d::CCPoint *)a3); } else { if ( v7 ) { cocos2d::CCPoint::CCPoint(v7, (const cocos2d::CCPoint *)a3); v7 = v5[-1].m_finish; } v5[-1].m_finish = v7 + 1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source