// // PlayLayer::resetLevelFromStart from 0x10008c0f0 to 0x10008c191 (161 bytes) // // 4 xrefs: // > PlayLayer::switchToStartPosObject @ 0x10008c0ad // > PlayLayer::fullReset @ 0x10008c4fe // > PlayLayer::togglePracticeMode @ 0x10008c6c3 // > PlayLayer::resumeAndRestart @ 0x10008dc0e // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 12:20:06 +0000 // __int64 __fastcall PlayLayer::resetLevelFromStart(_BYTE *a1, __int64 a2, __int64 a3) { __int64 v4; // rax __int64 v5; // rdi unsigned __int8 GameVariable; // r14 __int64 v7; // rdx double v8; // xmm0_8 __int64 v9; // rsi __int64 v10; // rax __int64 v11; // rax __int64 v12; // rdx __int64 v13; // rax GameManager::sharedState(a1, a2, a3); v5 = v4; GameVariable = GameManager::getGameVariable(v4, "0146"); *(_QWORD *)&v8 = GameManager::sharedState(v5, "0146", v7).u64[0]; v9 = (__int64)"0146"; GameManager::setGameVariable(v10, "0146", 1); (*(void (__fastcall **)(_BYTE *, double))(*(_QWORD *)a1 + 1584LL))(a1, v8); if ( a1[12544] != 1 || a1[12545] == 1 ) { v11 = FMODAudioEngine::sharedEngine(v8); v9 = 1; FMODAudioEngine::stopAllMusic(v11, 1); } a1[12617] = 1; (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)a1 + 1608LL))(a1); GameManager::sharedState(a1, v9, v12); return GameManager::setGameVariable(v13, "0146", GameVariable); }
GD Web Decomp Icon

GD Web Decomp

Raw Source