//
// LevelLeaderboard::onChangeType from 0x1003db510 to 0x1003db56d (93 bytes)
//
// 1 xrefs:
// > LevelLeaderboard::init @ 0x1003dae80
//
// 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 *v2; // rax
LevelLeaderboardType v3; // r14d
GameManager *v4; // rax
v2 = GJAccountManager::sharedState();
if ( v2->m_accountID > v2->m_unkInt1 )
{
v3 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v4 = GameManager::sharedState();
GameManager::setIntGameVariable(v4, "0098", v3);
LevelLeaderboard::reloadLeaderboard(a1, v3, a1->m_mode);
}
}