// // GJDifficultySprite::updateFeatureStateFromLevel from 0x4b3f08 to 0x4b3f40 (56 bytes) // // 2 xrefs: // > LevelCell::loadCustomLevelCell @ 0x33279a // > LevelInfoLayer::updateLabelValues @ 0x3b2f80 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void GJDifficultySprite::updateFeatureStateFromLevel(GJDifficultySprite *a1, GJGameLevel *a2) { int m_featured; // r2 bool v3; // zf bool v4; // nf int m_isEpic; // r2 GJFeatureState v6; // r1 if ( a2 ) { m_featured = a2->m_featured; v3 = m_featured == 0; v4 = m_featured < 0; m_isEpic = a2->m_isEpic; if ( (v4 || v3) && m_isEpic <= 0 ) { v6 = 0; } else if ( m_isEpic <= 0 ) { v6 = Featured; } else if ( m_isEpic <= 2 ) { if ( m_isEpic == 2 ) v6 = Legendary; else v6 = Epic; } else { v6 = Mythic; } GJDifficultySprite::updateFeatureState(a1, v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source