// // LevelInfoLayer::tryCloneLevel from 0x7e6d28 to 0x7e6e64 (316 bytes) // // 3 xrefs: // > @ 0xc92f8 // > LevelInfoLayer::init @ 0x7eb644 // > @ 0x1545e60 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:54:29 +0000 // __int64 __fastcall LevelInfoLayer::tryCloneLevel(LevelInfoLayer *this, cocos2d::CCObject *a2) { _DWORD *v3; // x2 NumberInputLayer *v4; // x0 __int64 v5; // x0 __int64 v6; // x20 __int64 v8; // x0 __int64 v9; // x2 __int64 v10[2]; // [xsp+20h] [xbp+20h] BYREF void *v11; // [xsp+30h] [xbp+30h] if ( !*((_BYTE *)this + 488) ) { v3 = *((_DWORD **)this + 63); if ( v3[245] - v3[246] == 1 ) { LevelInfoLayer::confirmClone(this, nullptr); } else { v4 = (NumberInputLayer *)(unsigned int)v3[251]; if ( (int)v4 <= 4 ) { v8 = NumberInputLayer::create(v4); v9 = *(_QWORD *)v8; *(_QWORD *)(v8 + 744) = (char *)this + 456; *(_DWORD *)(v8 + 692) = 6; (*(void (**)(void))(v9 + 1312))(); } else { v10[0] = 0; v10[1] = 0; v11 = nullptr; std::string::__init(v10, "Too many failed attempts!", 0x19u); v5 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Error", (char *)v10, (ButtonSprite *)"OK", nullptr, 300.0); v6 = v5; if ( (v10[0] & 1) != 0 ) { operator delete(v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6); } else { (*(void (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5); } } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source