//
// GJGameLoadingLayer::loadLevel from 0x10020949c to 0x100209504 (104 bytes)
//
// 1 xrefs:
// > GJGameLoadingLayer::gameLayerDidUnload @ 0x1001da9a8
//
// 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 GJGameLoadingLayer::loadLevel(GJGameLoadingLayer *a1)
{
_BOOL4 m_editor; // w21
cocos2d::CCDirector *v3; // x19
GJGameLevel *m_level; // x0
cocos2d::CCScene *v5; // x0
cocos2d::CCTransitionFade *v6; // x1
m_editor = a1->m_editor;
v3 = cocos2d::CCDirector::sharedDirector();
m_level = a1->m_level;
if ( m_editor )
v5 = LevelEditorLayer::scene(m_level, 0);
else
v5 = PlayLayer::scene(m_level, 0, 0);
v6 = cocos2d::CCTransitionFade::create_1(0.4, v5);
cocos2d::CCDirector::replaceScene(v3, v6);
}