// // GJGarageLayer::onBack from 0x10036bf20 to 0x10036c07b (347 bytes) // // 3 xrefs: // > GJGarageLayer::keyBackClicked @ 0x10036fe75 // > sub_10036FE80 @ 0x10036fe8c // > GJGarageLayer::init @ 0x100369f45 // // 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; // rax cocos2d::CCScene *m_pNextScene; // rdi cocos2d::CCMoveTo *v5; // rax unsigned int v6; // r14d unsigned int v7; // eax int v8; // ecx int v9; // r8d int v10; // r9d cocos2d::CCAction *v11; // rax cocos2d::CCDirector *v12; // rbx cocos2d::CCScene *v13; // rax cocos2d::CCTransitionFade *v14; // rax cocos2d::CCPoint v15; // [rsp+0h] [rbp-20h] BYREF char v16; // [rsp+8h] [rbp-18h] BYREF float v17; // [rsp+Ch] [rbp-14h] 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); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v16); sub_10028CBE0((float *)&v15, 0.0, v17); v5 = cocos2d::CCMoveTo::create(0.30000001, &v15); v6 = (unsigned int)cocos2d::CCEaseIn::create(v5, 2.0); v7 = (unsigned int)cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)0x209uLL); v11 = (cocos2d::CCAction *)sub_1003B5760(v6, v7, 0, v8, v9, v10); cocos2d::CCNode::runAction(a1, v11); } } else { a1->m_hasClosed = 1; v12 = cocos2d::CCDirector::sharedDirector(); v13 = MenuLayer::scene(0); v14 = cocos2d::CCTransitionFade::create_1(0.5, v13); cocos2d::CCDirector::replaceScene(v12, v14); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source