//
// MenuLayer::onMoreGames from 0x1003918a0 to 0x10039191b (123 bytes)
//
// 1 xrefs:
// > MenuLayer::init @ 0x100390b30
//
// 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 MenuLayer::onMoreGames(MenuLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
GameManager *v3; // rax
GJMoreGamesLayer *v4; // r14
v2 = GameManager::sharedState();
GameManager::setGameVariable(v2, "0053", 1);
PlatformToolbox::logEvent("MoreGames");
v3 = GameManager::sharedState();
GameManager::reportAchievementWithID(v3, "geometry.ach.moreGames", 100, 0);
v4 = GJMoreGamesLayer::create();
((void (__fastcall *)(MenuLayer *, GJMoreGamesLayer *, __int64))a1->addChild_0)(a1, v4, 100);
((void (__fastcall *)(GJMoreGamesLayer *, _QWORD))v4->showLayer)(v4, 0);
}