// // PlayLayer::togglePracticeMode from 0x100121a00 to 0x100121acc (204 bytes) // // 3 xrefs: // > PlayLayer::fullReset @ 0x100121998 // > PauseLayer::onPracticeMode @ 0x100143354 // > PauseLayer::onNormalMode @ 0x100143384 // // 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::togglePracticeMode(PlayLayer *a1, bool a2) { int *p_m_activeGradients; // x21 FMODAudioEngine *v5; // x0 FMODAudioEngine *v6; // x20 GameManager *v7; // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v9; // [xsp+1Fh] [xbp-21h] p_m_activeGradients = &a1->m_activeGradients; if ( a1->m_isPracticeMode != a2 ) { a1->m_isPracticeMode = a2; PlayLayer::toggleDebugDraw(a1); UILayer::toggleCheckpointsMenu(a1->m_uiLayer, a2); if ( a2 ) { if ( (*((_BYTE *)p_m_activeGradients + 129) & 1) == 0 ) { v5 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::stopAllMusic(v5, 1); v6 = FMODAudioEngine::sharedEngine(); v7 = GameManager::sharedState(); GameManager::getPracticeMusicFile(__p, v7); FMODAudioEngine::playMusic(v6, __p, 1, 0, 0.0); if ( v9 < 0 ) operator delete(__p[0]); } } else { PlayLayer::resetLevelFromStart(a1); } if ( *((_BYTE *)p_m_activeGradients + 128) == 1 ) cocos2d::CCNode::stopActionByTag(a1, 31); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source