//
// CreatorLayer::onSavedLevels from 0x100298410 to 0x1002984da (202 bytes)
//
// 1 xrefs:
// > CreatorLayer::init @ 0x10029789f
//
// 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 CreatorLayer::onSavedLevels(CreatorLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
GJSearchObject *v3; // rbx
GameManager *v4; // rax
GameManager *v5; // rax
GameManager *v6; // rax
int IntGameVariable; // ecx
int v8; // eax
GameManager *v9; // rax
cocos2d::CCDirector *v10; // r14
cocos2d::CCScene *v11; // rax
cocos2d::CCTransitionFade *v12; // rax
v2 = GameManager::sharedState();
v3 = GJSearchObject::create_2((SearchType)(4 * (v2->m_savedSearchType == FavouriteLists) + 99));
v4 = GameManager::sharedState();
if ( GameManager::getIntGameVariable(v4, "0092") <= 998
&& (v5 = GameManager::sharedState(), GameManager::getIntGameVariable(v5, "0092") <= 0) )
{
v8 = 0;
}
else
{
v6 = GameManager::sharedState();
IntGameVariable = GameManager::getIntGameVariable(v6, "0092");
v8 = 999;
if ( IntGameVariable <= 998 )
{
v9 = GameManager::sharedState();
v8 = GameManager::getIntGameVariable(v9, "0092");
}
}
v3->m_folder = v8;
v10 = cocos2d::CCDirector::sharedDirector();
v11 = LevelBrowserLayer::scene(v3);
v12 = cocos2d::CCTransitionFade::create_1(0.5, v11);
cocos2d::CCDirector::pushScene(v10, v12);
}