//
// LeaderboardsLayer::onInfo from 0x1003b0e5c to 0x1003b0fe0 (388 bytes)
//
// 1 xrefs:
// > LeaderboardsLayer::init @ 0x1003b0ca4
//
// 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 LeaderboardsLayer::onInfo(LeaderboardsLayer *a1, cocos2d::CCObject *a2)
{
LeaderboardType m_type; // w8
const std::string::value_type *v4; // x1
int v5; // w21
std::string::size_type v6; // x20
std::string *v7; // x1
std::string *v8; // x1
FLAlertLayer *v9; // x19
void *__p[2]; // [xsp+8h] [xbp-68h] BYREF
char v11; // [xsp+1Fh] [xbp-51h]
std::string v12; // [xsp+20h] [xbp-50h] BYREF
std::string v13; // [xsp+38h] [xbp-38h] BYREF
sub_100009900(&v13, "");
sub_100009900(&v12, "");
m_type = a1->m_type;
if ( m_type > Global )
{
if ( m_type == Creator )
{
std::string::assign(&v13, "Creators");
v4 = "The Creators leaderboard is sorted by amount of Creator Points. Creating a rated level rewards 1, Featured rewards 2, Epic rewards 3, Legendary rewards 4, and Mythic rewards 5.";
}
else
{
if ( m_type != Friends )
goto LABEL_19;
std::string::assign(&v13, "Friends");
v4 = "The Friends leaderboard shows your friends in order of Stars.";
}
}
else if ( m_type == Top100 )
{
std::string::assign(&v13, "Top 100");
v4 = "The Top 100 leaderboard shows the players with the most Stars in the game. Players must be "
"manually whitelisted by a Leaderboard Moderator to appear here, ensuring legitimate rankings.";
}
else
{
if ( m_type != Global )
goto LABEL_19;
std::string::assign(&v13, "Global");
v4 = "The Global leaderboard shows players in order of Stars.\n"
"Players banned by Leaderboard Moderators are excluded.";
}
std::string::assign(&v12, v4);
v5 = SHIBYTE(v13.__r_.__value_.__r.__words[2]);
v6 = v13.__r_.__value_.__r.__words[0];
if ( (v12.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v7 = &v12;
else
v7 = (std::string *)v12.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v7);
if ( v5 >= 0 )
v8 = &v13;
else
v8 = (std::string *)v6;
v9 = FLAlertLayer::create_1(
(__int64)&a1->FLAlertLayerProtocol,
(__int64)v8,
(__int64)__p,
(__int64)"OK",
(__int64)"Info",
380.0);
if ( v11 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(FLAlertLayer *))v9->show)(v9);
LABEL_19:
if ( SHIBYTE(v12.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v12.__r_.__value_.__l.__data_);
if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v13.__r_.__value_.__l.__data_);
}