// // GJDifficultySprite::updateFeatureStateFromLevel from 0xa2f2e8 to 0xa2f34c (100 bytes) // // 3 xrefs: // > LevelCell::loadCustomLevelCell @ 0x7462dc // > LevelInfoLayer::updateLabelValues @ 0x7e88fc // > @ 0x100180 // // 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:59:46 +0000 // _DWORD *__fastcall GJDifficultySprite::updateFeatureStateFromLevel(_DWORD *this, GJGameLevel *a2) { int v2; // w2 int v3; // w1 int v4; // w1 if ( a2 ) { v2 = *((_DWORD *)a2 + 226); v3 = *((_DWORD *)a2 + 227); if ( v2 <= 0 ) { if ( v3 > 0 ) { LABEL_4: if ( v3 > 2 ) { v4 = 4; } else if ( v3 == 2 ) { v4 = 3; } else { v4 = 2; } return (_DWORD *)GJDifficultySprite::updateFeatureState(this, v4); } v4 = 0; } else { if ( v3 > 0 ) goto LABEL_4; v4 = 1; } return (_DWORD *)GJDifficultySprite::updateFeatureState(this, v4); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source