// // PlayLayer::fullReset from 0x1403b8bf0 to 0x1403b8ce2 (242 bytes) // // 3 xrefs: // > UILayer::handleKeypress @ 0x1404cd9d2 // > EndLevelLayer::onReplay @ 0x140135044 // > @ 0x1406d7094 // // 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 PlayLayer::fullReset(PlayLayer *a1) { float v1; // xmm0_4 cocos2d::CCDirector *v3; // rax PlayerObject *m_player1; // rax bool v5; // zf cocos2d::CCLabelBMFont_vtbl *v6; // rbx const cocos2d::CCPoint *v7; // rax float v8; // [rsp+30h] [rbp+8h] v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v3); m_player1 = a1->m_player1; a1->m_gameState.m_totalTime = 0.0; a1->m_gameState.m_unkDouble3 = 0.0; a1->m_gameState.m_levelTime = 0.0; m_player1->m_totalTime = 0.0; a1->m_player2->m_totalTime = a1->m_gameState.m_totalTime; v5 = !a1->m_isPracticeMode; a1->m_attempts = 0; a1->m_jumps = 0; a1->m_objectsDeactivated = 1; a1->m_freezeStartCamera = 1; if ( v5 ) PlayLayer::resetLevelFromStart(a1); else PlayLayer::togglePracticeMode(a1, 0); v6 = a1->m_attemptLabel->__vftable; cocos2d::CCPoint::CCPoint(v1, (float)(v8 * 0.5) + a1->m_gameState.m_cameraPosition.x); v6->setPosition_0(a1->m_attemptLabel, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source