// // LevelInfoLayer::tryCloneLevel from 0x1002c21b0 to 0x1002c22ab (251 bytes) // // 1 xrefs: // > LevelInfoLayer::init @ 0x1002be92e // // 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 LevelInfoLayer::tryCloneLevel(LevelInfoLayer *a1, cocos2d::CCObject *a2) { GJGameLevel *m_level; // rax __int64 v3; // rbx NumberInputLayer *v4; // rax _QWORD v5[2]; // [rsp+0h] [rbp-20h] BYREF void *__p; // [rsp+10h] [rbp-10h] if ( !a1->m_isBusy ) { m_level = a1->m_level; if ( m_level->m_password.random - m_level->m_password.seed == 1 ) { LevelInfoLayer::confirmClone(a1, a2); } else if ( m_level->m_failedPasswordAttempts < 5 ) { v4 = NumberInputLayer::create(); v4->m_maximum = 6; v4->m_delegate = &a1->NumberInputDelegate; ((void (__fastcall *)(NumberInputLayer *, cocos2d::CCObject *))v4->show)(v4, a2); } else { __p = operator new(0x20u); v5[0] = 33; v5[1] = 25; strcpy((char *)__p, "Too many failed attempts!"); v3 = FLAlertLayer::create_1(0, "Error", v5, "OK", 0, 300.0); if ( (v5[0] & 1) != 0 ) operator delete(__p); (*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 1288LL))(v3); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source