// // AchievementManager::percentageForCount from 0x396070 to 0x3960b8 (72 bytes) // // 0 xrefs: // // 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:46:20 +0000 // float __fastcall AchievementManager::percentageForCount(AchievementManager *this, int a2, int a3) { float result; // r0 int v4; // s15 bool v5; // fnf result = floorf((float)((float)a2 / (float)a3) * 100.0); v4 = LODWORD(result); v5 = result < 100.0; if ( result >= 100.0 ) LODWORD(result) = 100; else v4 = (int)result; if ( v5 ) return *(float *)&v4; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source