// // PlayLayer::fullReset from 0x10012192c to 0x100121a00 (212 bytes) // // 2 xrefs: // > UILayer::handleKeypress @ 0x100049ea0 // > PlayLayer::delayedFullReset @ 0x1001218f4 // // 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 PlayLayer::fullReset(PlayLayer *a1) { int *p_m_activeGradients; // x20 cocos2d::CCDirector *v3; // x0 __n128 v4; // q0 __n128 v5; // q1 cocos2d::CCLabelBMFont *m_attemptLabel; // x20 _DWORD v7[4]; // [xsp+0h] [xbp-20h] BYREF p_m_activeGradients = &a1->m_activeGradients; v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v3); a1->m_gameState.m_unkDouble3 = 0.0; *(_OWORD *)&a1->m_gameState.m_totalTime = 0u; a1->m_player1->m_totalTime = 0.0; a1->m_player2->m_totalTime = 0.0; a1->m_attempts = 0; a1->m_jumps = 0; *((_BYTE *)p_m_activeGradients + 16) = 1; *((_BYTE *)p_m_activeGradients + 193) = 1; if ( *((_BYTE *)p_m_activeGradients + 128) == 1 ) PlayLayer::togglePracticeMode(a1, 0); else PlayLayer::resetLevelFromStart(a1); m_attemptLabel = a1->m_attemptLabel; v4.n128_f32[0] = a1->m_gameState.m_cameraPosition.x + (float)(*(float *)&v7[2] * 0.5); v5.n128_f32[0] = (float)(a1->m_gameState.m_cameraPosition.y + (float)(*(float *)&v7[3] * 0.5)) + 85.0; sub_100022980(v4, v5, v7); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, _DWORD *))m_attemptLabel->setPosition)(m_attemptLabel, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source