//
// LevelLeaderboard::onChangeType from 0x10025050c to 0x100250580 (116 bytes)
//
// 1 xrefs:
// > LevelLeaderboard::init @ 0x10024fe04
//
// 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 __fastcall LevelLeaderboard::onChangeType(LevelLeaderboard *a1, cocos2d::CCObject *a2)
{
GJAccountManager *v4; // x0
LevelLeaderboardType v5; // w20
GameManager *v6; // x0
v4 = GJAccountManager::sharedState();
if ( v4->m_accountID > v4->m_unkInt1 )
{
v5 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v6 = GameManager::sharedState();
GameManager::setIntGameVariable(v6, "0098", v5);
LevelLeaderboard::reloadLeaderboard(a1, v5, a1->m_mode);
}
}