// // GameLevelManager::verifyLevelState from 0x8066dc to 0x8067a4 (200 bytes) // // 2 xrefs: // > GameLevelManager::onGetLevelSaveDataCompleted @ 0x811984 // > @ 0x8ad60 // // This function is hookable on this platform (idp: arm, 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:54:45 +0000 // unsigned __int64 __fastcall GameLevelManager::verifyLevelState(GameLevelManager *this, GJGameLevel *a2) { GameStatsManager *v3; // x0 unsigned __int64 result; // x0 GameStatsManager *v5; // x0 int v6; // w0 int v7; // w0 int v8; // w0 v3 = (GameStatsManager *)GameStatsManager::sharedState(this); result = (unsigned __int8)GameStatsManager::hasCompletedLevel(v3, a2); if ( (_BYTE)result ) { result = (unsigned __int8)GJGameLevel::shouldCheatReset(a2); if ( (_BYTE)result ) { v5 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)result); GameStatsManager::uncompleteLevel(v5, a2); GJGameLevel::setNormalPercent(a2, 0); *((_DWORD *)a2 + 218) = 0; v6 = rand(); *((_DWORD *)a2 + 221) = 0; v7 = (int)(float)((float)((float)v6 * 4.6566e-10) * 1000.0); *((_DWORD *)a2 + 217) = v7; *((_DWORD *)a2 + 216) = v7; v8 = rand(); *((_DWORD *)a2 + 324) = 0; *((_BYTE *)a2 + 849) = 1; *((_DWORD *)a2 + 334) = 0; result = (unsigned int)(int)(float)((float)((float)v8 * 4.6566e-10) * 1000.0); *((_DWORD *)a2 + 220) = result; *((_DWORD *)a2 + 219) = result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source