// // PlayLayer::resetLevelFromStart from 0x4021c0 to 0x402228 (104 bytes) // // 4 xrefs: // > PlayLayer::resumeAndRestart @ 0x402756 // > PlayLayer::togglePracticeMode @ 0x4079a2 // > PlayLayer::fullReset @ 0x407a5a // > PlayLayer::switchToStartPosObject @ 0x412214 // // 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:24 +0000 // int __fastcall PlayLayer::resetLevelFromStart(PlayLayer *this) { GameManager *v2; // r0 GameManager *GameVariable; // r0 bool v4; // r6 GameManager *v5; // r0 FMODAudioEngine *v6; // r0 FMODAudioEngine *v7; // r0 GameManager *v8; // r0 GameManager *v9; // r0 v2 = (GameManager *)GameManager::sharedState(this); GameVariable = (GameManager *)GameManager::getGameVariable(v2, "0146"); v4 = (char)GameVariable; v5 = (GameManager *)GameManager::sharedState(GameVariable); GameManager::setGameVariable(v5, "0146", 1); v6 = (FMODAudioEngine *)(*(int (__fastcall **)(PlayLayer *))(*(_DWORD *)this + 792))(this); if ( !*((_BYTE *)this + 10784) || *((_BYTE *)this + 10785) ) { v7 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v6); FMODAudioEngine::stopAllMusic(v7, 1); } *((_BYTE *)this + 10837) = 1; v8 = (GameManager *)(*(int (__fastcall **)(PlayLayer *))(*(_DWORD *)this + 804))(this); v9 = (GameManager *)GameManager::sharedState(v8); return GameManager::setGameVariable(v9, "0146", v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source