// // GJGameLoadingLayer::transitionToLoadingLayer from 0x140248e20 to 0x140249003 (483 bytes) // // 4 xrefs: // > EditorPauseLayer::playStep3 @ 0x1400de0db // > EndLevelLayer::goEdit @ 0x14013537a // > PauseLayer::goEdit @ 0x14037e976 // > @ 0x1406ce7d8 // // 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 // // Hidden C++ exception states: #wind=1 GJGameLoadingLayer *GJGameLoadingLayer::transitionToLoadingLayer(GJGameLevel *a1, bool a2) { struct cocos2d::CCScene *v4; // r14 __int64 v5; // rdx __int64 v6; // rcx GJGameLoadingLayer *v7; // rsi __int64 v8; // rcx cocos2d::CCDirector *v9; // rax struct cocos2d::CCLabelBMFont *v10; // rdi float v11; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v12; // rbx __int64 v13; // rax float v14; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v15; // rbx const cocos2d::CCPoint *v16; // rax struct cocos2d::CCTransitionFade *v17; // rbx __int64 v18; // rcx cocos2d::CCDirector *v19; // rax v4 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(a1); *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v6, v5) + 224) = v4; v7 = (GJGameLoadingLayer *)operator new(0x1A8u); cocos2d::CCLayer::CCLayer(v7); v7->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJGameLoadingLayer_vtbl *)&GJGameLoadingLayer::`vftable'; v7->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJGameLoadingLayer::`vftable'; v7->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJGameLoadingLayer::`vftable'; v7->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJGameLoadingLayer::`vftable'; v7->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJGameLoadingLayer::`vftable'; v7->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJGameLoadingLayer::`vftable'; v7->m_level = nullptr; v7->m_editor = 0; if ( cocos2d::CCLayer::init(v7) ) { if ( a1 ) { v7->m_level = a1; cocos2d::CCObject::retain(a1); } v7->m_editor = a2; v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8); cocos2d::CCDirector::getWinSize(v9); v10 = cocos2d::CCLabelBMFont::create("Loading...", (const char *)&qword_14052A4D8); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v10->setScale_0)(v10); v11 = ((float (__fastcall *)(GJGameLoadingLayer *, struct cocos2d::CCLabelBMFont *, __int64))v7->addChild_0)( v7, v10, 1); v12 = v10->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v11, 1.0); v14 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, __int64))v12->setAnchorPoint)(v10, v13); v15 = v10->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v14, *(float *)&v7 - 20.0); v15->setPosition_0(v10, v16); cocos2d::CCObject::autorelease(v7); } else { ((void (__fastcall *)(GJGameLoadingLayer *, __int64))v7->~GJGameLoadingLayer)(v7, 1); v7 = nullptr; } v4->addChild_1(v4, v7); v4->m_eObjType = PlayLayerObjectType; v17 = cocos2d::CCTransitionFade::create(0.1, v4); v19 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v18); cocos2d::CCDirector::replaceScene(v19, v17); return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source