// // ShareLevelLayer::onShare from 0x100275e60 to 0x100275fa0 (320 bytes) // // 1 xrefs: // > ShareLevelLayer::init @ 0x10027580c // // 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 ShareLevelLayer::onShare(ShareLevelLayer *a1, cocos2d::CCObject *a2) { GJGameLevel *m_level; // x0 __int64 v4; // x19 void *v5; // x0 UploadPopup *v6; // x0 _QWORD v7[2]; // [xsp+0h] [xbp-40h] BYREF char v8; // [xsp+17h] [xbp-29h] void *__p[2]; // [xsp+18h] [xbp-28h] BYREF char v10; // [xsp+2Fh] [xbp-11h] m_level = a1->m_level; if ( m_level->m_isUploaded ) { sub_100009900(__p, "This version has already been submitted"); v4 = FLAlertLayer::create_1(0, "Uploaded", __p, "OK", 0, 380.0); if ( v10 < 0 ) { v5 = __p[0]; LABEL_4: operator delete(v5); } } else { if ( m_level->m_isVerified.random - m_level->m_isVerified.seed == 1 || m_level->m_unlisted ) { v6 = UploadPopup::create(m_level); ((void (__fastcall *)(UploadPopup *))v6->show)(v6); ((void (__fastcall *)(ShareLevelLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0); ((void (__fastcall *)(ShareLevelLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1); return; } sub_100009900( v7, "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."); v4 = FLAlertLayer::create_1(0, "Unverified", v7, "OK", 0, 380.0); if ( v8 < 0 ) { v5 = (void *)v7[0]; goto LABEL_4; } } (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1288LL))(v4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source