// // SecretLayer3::onBack from 0x1004a5ec0 to 0x1004a5ffa (314 bytes) // // 3 xrefs: // > SecretLayer3::keyBackClicked @ 0x1004a8455 // > sub_1004A8460 @ 0x1004a846c // > SecretLayer3::init @ 0x1004a4a91 // // 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 SecretLayer3::onBack(SecretLayer3 *a1, cocos2d::CCObject *a2) { GameManager *v2; // rax cocos2d::CCDirector *v3; // rbx cocos2d::CCScene *v4; // r14 SecretLayer2 *v5; // rax cocos2d::CCTransitionFade *v6; // rax cocos2d::CCSprite *m_demonEyes; // r14 cocos2d::CCFadeIn *v8; // rax cocos2d::CCDelayTime *v9; // r14 cocos2d::CCCallFunc *v10; // rax cocos2d::CCSequence *v11; // rax if ( !a1->m_lockInput ) { v2 = GameManager::sharedState(); if ( GameManager::getUGV(v2, "12") ) { ((void (__fastcall *)(SecretLayer3 *, _QWORD))a1->setKeypadEnabled)(a1, 0); v3 = cocos2d::CCDirector::sharedDirector(); v4 = cocos2d::CCScene::create(); AppDelegate::get()->m_runningScene = v4; v5 = SecretLayer2::create(); ((void (__fastcall *)(cocos2d::CCScene *, SecretLayer2 *))v4->addChild)(v4, v5); v6 = cocos2d::CCTransitionFade::create_1(0.5, v4); cocos2d::CCDirector::replaceScene(v3, v6); } else { a1->m_lockInput = 1; cocos2d::CCNode::stopAllActions(a1->m_demonEyes); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_demonEyes->setScale)(a1->m_demonEyes, 1.0); ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_demonEyes->setOpacity)(a1->m_demonEyes, 0); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_demonEyes->setVisible)(a1->m_demonEyes, 1); m_demonEyes = a1->m_demonEyes; v8 = cocos2d::CCFadeIn::create(1.0); cocos2d::CCNode::runAction(m_demonEyes, v8); v9 = cocos2d::CCDelayTime::create(2.0); v10 = cocos2d::CCCallFunc::create( a1, (cocos2d::SEL_CallFunc)(unsigned __int64)SecretLayer3::firstInteractionStep2); v11 = sub_1003B5760(v9, v10, 0); cocos2d::CCNode::runAction(a1, v11); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source