//
// GJGameLoadingLayer::loadLevel from 0x46c328 to 0x46c376 (78 bytes)
//
// 0 xrefs:
//
// 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 GJGameLoadingLayer::loadLevel(GJGameLoadingLayer *a1)
{
cocos2d::CCDirector *v2; // r5
cocos2d::CCScene *v3; // r0
cocos2d::CCTransitionFade *v4; // r1
cocos2d::CCDirector *v5; // r0
cocos2d::CCDirector *v6; // r6
cocos2d::CCScene *v7; // r0
if ( a1->m_editor )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = LevelEditorLayer::scene(a1->m_level, 0);
v4 = cocos2d::CCTransitionFade::create(0.4, v3);
v5 = v2;
}
else
{
v6 = cocos2d::CCDirector::sharedDirector();
v7 = PlayLayer::scene(a1->m_level, 0, 0);
v4 = cocos2d::CCTransitionFade::create(0.4, v7);
v5 = v6;
}
cocos2d::CCDirector::replaceScene(v5, v4);
}