// // GJPathSprite::updateState from 0x58ccf0 to 0x58cd5c (108 bytes) // // 2 xrefs: // > GJPathsLayer::init @ 0x58d016 // > GJPathPage::init @ 0x58d61a // // 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 GJPathSprite::updateState(GJPathSprite *a1) { GameStatsManager *v2; // r0 StatKey v3; // r5 GameStatsManager *v4; // r0 int StatFromKey; // r0 float v6; // s15 v2 = GameStatsManager::sharedState(); if ( GameStatsManager::isItemUnlocked(v2, GJItem, a1->m_pathNumber + 5) ) { v3 = a1->m_pathNumber + 29; v4 = GameStatsManager::sharedState(); StatFromKey = GameStatsManager::getStatFromKey(v4, v3); v6 = floorf((float)StatFromKey / 100.0); if ( (int)v6 <= 9 ) GJPathSprite::addRankLabel(a1, (int)v6); else GJPathSprite::addShardSprite(a1); } else { GJPathSprite::changeToLockedArt(a1); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source