// // GJGarageLayer::onBack from 0x1003043b0 to 0x1003044fc (332 bytes) // // 3 xrefs: // > GJGarageLayer::keyBackClicked @ 0x100306f80 // > sub_100306F84 @ 0x100306f88 // > GJGarageLayer::init @ 0x100302528 // // 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 GJGarageLayer::onBack(GJGarageLayer *a1, cocos2d::CCObject *a2) { cocos2d::CCDirector *v3; // x0 cocos2d::CCScene *m_pNextScene; // x0 cocos2d::CCDirector *v5; // x0 __n128 v6; // q1 __n128 v7; // q0 cocos2d::CCMoveTo *v8; // x0 cocos2d::CCEaseIn *v9; // x20 char v10; // w0 __int64 v11; // x1 __int64 v12; // x2 __int64 v13; // x3 __int64 v14; // x4 __int64 v15; // x5 __int64 v16; // x6 __int64 v17; // x7 cocos2d::CCSequence *v18; // x0 cocos2d::CCDirector *v19; // x19 cocos2d::CCScene *v20; // x0 cocos2d::CCTransitionFade *v21; // x0 cocos2d::CCPoint v22; // [xsp+10h] [xbp-20h] BYREF unsigned __int32 v23; // [xsp+1Ch] [xbp-14h] cocos2d::SEL_CallFunc v24; // 0:x1.16 if ( !a1->m_hasClosed ) { ((void (__fastcall *)(GJGarageLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); if ( GameManager::sharedState()->m_ropeGarageEnter ) { GameManager::sharedState()->m_ropeGarageEnter = 0; cocos2d::CCObject::retain(a1); ((void (__fastcall *)(GJGarageLayer *))a1->removeFromParent)(a1); ((void (__fastcall *)(GJGarageLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::popScene(v3); m_pNextScene = cocos2d::CCDirector::sharedDirector()->m_pNextScene; if ( m_pNextScene ) { a1->m_hasClosed = 1; ((void (__fastcall *)(cocos2d::CCScene *, GJGarageLayer *, __int64))m_pNextScene->addChild_0)( m_pNextScene, a1, 1000); cocos2d::CCObject::release(a1); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v5); v6.n128_u32[0] = v23; v7.n128_u32[0] = 0; sub_100022980(v7, v6, &v22); v8 = cocos2d::CCMoveTo::create(0.3, &v22); v9 = cocos2d::CCEaseIn::create(v8, 2.0); v24.ptr = (void (*)(void))520; v24.adj = 1; v10 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, v24); v18 = sub_10018A494(v9, v11, v12, v13, v14, v15, v16, v17, v10); cocos2d::CCNode::runAction(a1, v18); } } else { a1->m_hasClosed = 1; v19 = cocos2d::CCDirector::sharedDirector(); v20 = MenuLayer::scene(0); v21 = cocos2d::CCTransitionFade::create_1(0.5, v20); cocos2d::CCDirector::replaceScene(v19, v21); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source