// // ShareLevelLayer::onShare from 0x7f5288 to 0x7f53ec (356 bytes) // // 3 xrefs: // > @ 0x97870 // > ShareLevelLayer::init @ 0x7f448c // > @ 0x15441f0 // // 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:37 +0000 // __int64 __fastcall ShareLevelLayer::onShare(ShareLevelLayer *this, cocos2d::CCObject *a2) { __int64 v3; // x0 unsigned __int64 v4; // x1 __int64 v5; // x0 __int64 v6; // x20 __int64 v7; // x0 __int64 v9; // [xsp+20h] [xbp+20h] BYREF __int64 v10; // [xsp+28h] [xbp+28h] void *v11; // [xsp+30h] [xbp+30h] v3 = *((_QWORD *)this + 83); if ( *(_BYTE *)(v3 + 785) ) { v9 = 0; v10 = 0; v11 = nullptr; std::string::__init(&v9, "This version has already been submitted", 0x27u); v5 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Uploaded", (char *)&v9, (ButtonSprite *)"OK", nullptr, 380.0); } else { v4 = (unsigned int)(*(_DWORD *)(v3 + 776) - *(_DWORD *)(v3 + 780)); if ( (_DWORD)v4 == 1 || (v4 = *(unsigned __int8 *)(v3 + 616), *(_BYTE *)(v3 + 616)) ) { v7 = UploadPopup::create((UploadPopup *)v3, (GJGameLevel *)v4); (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7); ShareLevelLayer::onClose(this, nullptr); return _stack_chk_guard; } v9 = 0; v10 = 0; v11 = nullptr; 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); v5 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Unverified", (char *)&v9, (ButtonSprite *)"OK", nullptr, 380.0); } v6 = v5; if ( (v9 & 1) != 0 ) operator delete(v11); (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source