// // PlayLayer::togglePracticeMode from 0x40795e to 0x4079da (124 bytes) // // 4 xrefs: // > UILayer::handleAction @ 0x3fe75e // > PlayLayer::fullReset @ 0x407a54 // > PauseLayer::onPracticeMode @ 0x48ede0 // > PauseLayer::onNormalMode @ 0x48edfe // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:47:29 +0000 // unsigned __int8 *__fastcall PlayLayer::togglePracticeMode(unsigned __int8 *this, int a2) { unsigned __int8 *v2; // r4 v2 = this; if ( *(this + 10784) != a2 ) { if ( a2 ) PlayLayer::writePersistentSave((GameManager *)this); v2[10784] = a2; PlayLayer::toggleDebugDraw((cocos2d::CCDrawNode **)v2); UILayer::toggleCheckpointsMenu(*((UILayer **)v2 + 2810), a2); if ( a2 ) { if ( !v2[10785] ) PlayLayer::playPracticeMusic((PlayLayer *)v2); } else { if ( *(_DWORD *)(*((_DWORD *)v2 + 352) + 952) != 2 && *((_DWORD *)v2 + 2680) ) GJBaseGameLayer::setActiveStartPosObject((GJBaseGameLayer *)v2, nullptr); PlayLayer::resetLevelFromStart((PlayLayer *)v2); } if ( v2[10784] ) PlayLayer::stopRecording((PlayLayer *)v2); return (unsigned __int8 *)PlayLayer::dtLiveMarkersChanged((PlayLayer *)v2); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source