// // GJGameLevel::getAverageDifficulty from 0x14016cd30 to 0x14016cd96 (102 bytes) // // 3 xrefs: // > LevelCell::loadCustomLevelCell @ 0x1400af5b9 // > LevelInfoLayer::updateLabelValues @ 0x1402ffa74 // > @ 0x1406cadb8 // // 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 // int GJGameLevel::getAverageDifficulty(GJGameLevel *a1) { int m_ratings; // eax float v3; // xmm1_4 m_ratings = a1->m_ratings; if ( m_ratings < 5 ) return 0; v3 = (float)a1->m_ratingsSum / (float)m_ratings; if ( v3 < 0.0 ) return (int)ceilf(v3 - 0.5); else return (int)floorf(v3 + 0.5); }