// // GameManager::safePopScene from 0x14018a360 to 0x14018a3d3 (115 bytes) // // 9 xrefs: // > LeaderboardsLayer::onBack @ 0x1402c413c // > LevelBrowserLayer::onBack @ 0x1402ccf06 // > LevelInfoLayer::onBack @ 0x14030080a // > LevelListLayer::onBack @ 0x140307518 // > LevelSearchLayer::onBack @ 0x140311c3d // > @ 0x140678548 // > @ 0x140678558 // > @ 0x1406cb6ac // > @ 0x1406cb6b8 // // 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 // bool GameManager::safePopScene(GameManager *a1) { cocos2d::CCDirector *v1; // rax __int64 v2; // rcx struct cocos2d::CCScene *v3; // rax struct cocos2d::CCTransitionFade *v4; // rbx __int64 v5; // rcx cocos2d::CCDirector *v6; // rax cocos2d::CCDirector *v8; // rax v1 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); if ( (int)cocos2d::CCDirector::sceneCount(v1) > 1 ) { v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v2); return cocos2d::CCDirector::popSceneWithTransition(v8, 0.5, kPopTransitionFade); } else { v3 = MenuLayer::scene(0); v4 = cocos2d::CCTransitionFade::create(0.5, v3); v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); return cocos2d::CCDirector::replaceScene(v6, v4); } }