// // LevelInfoLayer::confirmClone from 0x49a9e8 to 0x49aa9a (178 bytes) // // 2 xrefs: // > LevelInfoLayer::tryCloneLevel @ 0x49aae6 // > LevelInfoLayer::numberInputClosed @ 0x49b3b6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:49:45 +0000 // int __fastcall LevelInfoLayer::confirmClone(int this, cocos2d::CCObject *a2) { int v2; // r5 int v3; // r4 int v4; // r0 const char *v5; // r7 size_t v6; // r0 int *v7; // r5 int v8[3]; // [sp+8h] [bp-14h] BYREF v2 = this; if ( !*(_BYTE *)(this + 356) ) { v3 = *(_DWORD *)(*(_DWORD *)(this + 364) + 404) - *(_DWORD *)(*(_DWORD *)(this + 364) + 408); v4 = GameManager::sharedState((GameManager *)this); if ( v3 == *(_DWORD *)(v4 + 464) - *(_DWORD *)(v4 + 468) ) v5 = "Create a copy of this level?\n(Creator enabled)"; else v5 = "Create a copy of this level?"; memset(v8, 0, sizeof(v8)); v6 = strlen(v5); std::string::__init(v8, v5, v6); v7 = FLAlertLayer::create( v2 + 332, (cocos2d::CCLabelBMFont *)"Clone Level", (int)v8, (ButtonSprite *)"NO", (ButtonSprite *)"YES", 300.0); std::string::~string((int)v8); (*(void (__fastcall **)(int *, int))(*v7 + 36))(v7, 6); return (*(int (__fastcall **)(int *))(*v7 + 656))(v7); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source