// // LevelInfoLayer::tryCloneLevel from 0x3b11a0 to 0x3b1248 (168 bytes) // // 0 xrefs: // // 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 LevelInfoLayer::tryCloneLevel(LevelInfoLayer *a1, cocos2d::CCObject *a2) { _BOOL4 m_isBusy; // r5 GJGameLevel *m_level; // r3 FLAlertLayer *v5; // r5 NumberInputLayer *v6; // r0 NumberInputLayer_vtbl *v7; // r3 char v8[4]; // [sp+10h] [bp-8h] BYREF m_isBusy = a1->m_isBusy; if ( !a1->m_isBusy ) { m_level = a1->m_level; if ( m_level->m_password.random - m_level->m_password.seed == 1 ) { LevelInfoLayer::confirmClone(a1, (cocos2d::CCObject *)a1->m_isBusy); } else if ( m_level->m_failedPasswordAttempts <= 4 ) { v6 = NumberInputLayer::create(); v7 = v6->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v6->m_delegate = &a1->NumberInputDelegate; v6->m_maximum = 6; v7->show(v6); } else { sub_776584((int)v8, "Too many failed attempts!"); v5 = FLAlertLayer::create(m_isBusy, (int)"Error", (int)v8, (int)"OK", m_isBusy, 300.0); sub_774008(v8); v5->show(v5); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source