// // GameManager::generateSecretNumber from 0x324030 to 0x3240ce (158 bytes) // // 1 xrefs: // > SecretLayer2::onSubmit @ 0x4edb6e // // 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 GameManager::generateSecretNumber(GameManager *a1) { int v1; // r4 int v2; // r5 int v3; // s15 float v4; // s16 GameManager *v5; // r4 int result; // r0 int v7; // s15 v1 = 0; v2 = 0; do { rand(); v3 = v1++; v4 = COERCE_FLOAT(roundf()); v2 += (int)(float)(v4 * powf(10.0, (float)v3)); } while ( v1 != 7 ); v5 = GameManager::sharedState(); result = rand(); v7 = (int)(float)((float)((float)result * 4.6566e-10) * 1000.0); v5->m_secretNumber.random = v7; v5->m_secretNumber.seed = v7 + v2; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source