// // GJGameLevel::levelWasAltered from 0x4cad54 to 0x4cae4a (246 bytes) // // 1 xrefs: // > LevelEditorLayer::saveLevel @ 0x472844 // // 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:50:37 +0000 // int __fastcall GJGameLevel::levelWasAltered(GJGameLevel *this, int a2, int a3, int a4) { int v5; // s15 int result; // r0 GJGameLevel *v7; // [sp+0h] [bp-10h] BYREF int v8; // [sp+4h] [bp-Ch] int v9; // [sp+8h] [bp-8h] int v10; // [sp+Ch] [bp-4h] v7 = this; v8 = a2; v9 = a3; v10 = a4; *((_BYTE *)this + 608) = 0; *((_BYTE *)this + 610) = 1; v5 = (int)(float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 1000.0); *((_DWORD *)this + 151) = v5; *((_DWORD *)this + 150) = v5; GJGameLevel::unverifyCoins(this); std::string::assign((int *)this + 243, (char *)&unk_B6B226); *((_DWORD *)this + 260) = 0; *((_DWORD *)this + 267) = 0; *((_BYTE *)this + 1124) = 0; *((_BYTE *)this + 1125) = 0; result = GJGameLevel::clearPlatformerSave(this); if ( *((_DWORD *)this + 238) == 2 ) { GJGameLevel::setNormalPercent(this, 0); *((_DWORD *)this + 178) = 0; GJGameLevel::setNewNormalPercent(this, 0); GJGameLevel::setNewNormalPercent2(this, 0); GJGameLevel::setClicks(this, 0); GJGameLevel::setAttemptTime(this, 0); v7 = nullptr; v8 = 0; v9 = 0; std::string::__init((int *)&v7, &unk_B6B226, 0); std::string::operator=((unsigned __int8 *)this + 988, (unsigned __int8 *)&v7); result = std::string::~string((int)&v7); *((_DWORD *)this + 167) = 0; } if ( *((_BYTE *)this + 609) ) { *((_BYTE *)this + 609) = 0; ++*((_DWORD *)this + 153); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source