// // LevelOptionsLayer::onSettings from 0x140324530 to 0x140324709 (473 bytes) // // 2 xrefs: // > LevelOptionsLayer::setupOptions @ 0x140324478 // > @ 0x1406d4d90 // // 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 void LevelOptionsLayer::onSettings(LevelOptionsLayer *a1, cocos2d::CCObject *a2) { LevelSettingsObject *m_settingsObject; // rbx LevelOptionsLayer *v4; // rsi __int64 v5; // rcx cocos2d::CCDirector *v6; // rax struct cocos2d::CCLabelBMFont *v7; // rdi cocos2d::CCLabelBMFont_vtbl *v8; // rbx const cocos2d::CCPoint *v9; // rax void (__fastcall *show)(SetupTriggerPopup *__hidden); // rdx m_settingsObject = a1->m_settingsObject; v4 = (LevelOptionsLayer *)operator new(0x3F8u); LevelOptionsLayer::LevelOptionsLayer(v4); v4->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (LevelOptionsLayer_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&LevelOptionsLayer2::`vftable'; v4->GJOptionsLayer::SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)&LevelOptionsLayer2::`vftable'; if ( LevelOptionsLayer::init(v4, m_settingsObject) ) { v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6); v7 = cocos2d::CCLabelBMFont::create("Legacy Options", "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v7->setScale_0)(v7); v8 = v7->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(*((float *)&v4 + 1) * 0.5, *(float *)&v4 * 0.5); v8->setPosition_0(v7, v9); v4->m_mainLayer->addChild_0(v4->m_mainLayer, v7, 1); cocos2d::CCObject::autorelease(v4); } else { ((void (__fastcall *)(LevelOptionsLayer *, __int64))v4->~LevelOptionsLayer)(v4, 1); v4 = nullptr; } show = v4->show; if ( (char *)show == (char *)CollisionBlockPopup::show ) CollisionBlockPopup::show((__int64)v4); else show(v4); a1->onClose(a1, nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source