// // ShareLevelLayer::onShare from 0x4a3cc4 to 0x4a3d92 (206 bytes) // // 0 xrefs: // // 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:52 +0000 // int __fastcall ShareLevelLayer::onShare(ShareLevelLayer *this, cocos2d::CCObject *a2) { int v3; // r0 int *v4; // r0 int v5; // r4 int *v6; // r4 FLAlertLayer *v8; // r0 int v9; // [sp+8h] [bp-10h] BYREF int v10; // [sp+Ch] [bp-Ch] int v11; // [sp+10h] [bp-8h] v3 = *((_DWORD *)this + 130); if ( *(_BYTE *)(v3 + 609) ) { v9 = 0; v10 = 0; v11 = 0; std::string::__init(&v9, "This version has already been submitted", 0x27u); v4 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Uploaded", (int)&v9, (ButtonSprite *)"OK", nullptr, 380.0); LABEL_6: v6 = v4; std::string::~string((int)&v9); return (*(int (__fastcall **)(int *))(*v6 + 656))(v6); } if ( *(_DWORD *)(v3 + 600) - *(_DWORD *)(v3 + 604) != 1 ) { v5 = *(unsigned __int8 *)(v3 + 444); if ( !*(_BYTE *)(v3 + 444) ) { v9 = *(unsigned __int8 *)(v3 + 444); v10 = v5; v11 = v5; std::string::__init( &v9, "You cannot share a level until you have completed it.\n" "Complete the level in Normal mode to verify that it can be beaten!\n" "A level cannot be verified if it has a Start Pos.\n" "Unlisted levels do not need to be verified.", 0xF6u); v4 = FLAlertLayer::create( v5, (cocos2d::CCLabelBMFont *)"Unverified", (int)&v9, (ButtonSprite *)"OK", (ButtonSprite *)v5, 380.0); goto LABEL_6; } } v8 = UploadPopup::create((UploadPopup *)v3, a2); (*(void (__fastcall **)(FLAlertLayer *))(*(_DWORD *)v8 + 656))(v8); return ShareLevelLayer::onClose(this, nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source