//
// GJGameLoadingLayer::loadLevel from 0x855a98 to 0x855b14 (124 bytes)
//
// 3 xrefs:
// > ??> @ 0x341b8
// > GJGameLoadingLayer::gameLayerDidUnload @ 0x86c820
// > ??> @ 0x1229900
//
// 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; // x20
cocos2d::CCScene *v3; // x0
cocos2d::CCTransitionFade *v4; // x1
if ( a1->m_editor )
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = LevelEditorLayer::scene(a1->m_level, 0);
}
else
{
v2 = cocos2d::CCDirector::sharedDirector();
v3 = PlayLayer::scene(a1->m_level, 0, 0);
}
v4 = cocos2d::CCTransitionFade::create(0.4, v3);
cocos2d::CCDirector::replaceScene(v2, v4);
}