// // GameStatsManager::trySelectActivePath from 0x41ba38 to 0x41bae8 (176 bytes) // // 3 xrefs: // > GameStatsManager::incrementActivePath @ 0x41bafc // > GJPathsLayer::init @ 0x58cda2 // > GJPathPage::init @ 0x58de4a // // 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 GameStatsManager::trySelectActivePath(GameStatsManager *a1) { StatKey m_activePath; // r1 int Stat; // r7 StatKey v4; // r5 int v5; // r8 char *v6; // [sp+0h] [bp-8h] BYREF v6 = (char *)a1; GameStatsManager::updateActivePath(a1, (StatKey)a1->m_activePath); m_activePath = a1->m_activePath; if ( m_activePath ) { if ( !GameStatsManager::isPathUnlocked(a1, m_activePath) || (GameToolbox::intToString((GameToolbox *)&v6, a1->m_activePath), Stat = GameStatsManager::getStat(a1, v6), sub_774008(&v6), Stat >= 1000) ) { a1->m_activePath = 0; } } if ( !a1->m_activePath ) { v4 = FirePath; while ( 1 ) { if ( GameStatsManager::isPathUnlocked(a1, v4) ) { GameToolbox::intToString((GameToolbox *)&v6, v4); v5 = GameStatsManager::getStat(a1, v6); sub_774008(&v6); if ( v5 < 1000 ) break; } if ( ++v4 == Gauntlets ) return; } a1->m_activePath = v4; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source