// // GJDifficultySprite::updateFeatureStateFromLevel from 0x5ddebc to 0x5ddef4 (56 bytes) // // 2 xrefs: // > LevelCell::loadCustomLevelCell @ 0x42f97a // > LevelInfoLayer::updateLabelValues @ 0x49c024 // // 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:54:13 +0000 // _DWORD *__fastcall GJDifficultySprite::updateFeatureStateFromLevel(_DWORD *this, GJGameLevel *a2) { int v2; // r2 bool v3; // zf bool v4; // nf int v5; // r2 int v6; // r1 if ( a2 ) { v2 = *((_DWORD *)a2 + 182); v3 = v2 == 0; v4 = v2 < 0; v5 = *((_DWORD *)a2 + 183); if ( (v4 || v3) && v5 <= 0 ) { v6 = 0; } else if ( v5 <= 0 ) { v6 = 1; } else if ( v5 <= 2 ) { if ( v5 == 2 ) v6 = 3; else v6 = 2; } else { v6 = 4; } return GJDifficultySprite::updateFeatureState(this, v6); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source