// // ShareLevelLayer::onShare from 0x3b98ec to 0x3b99ac (192 bytes) // // 0 xrefs: // // 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 ShareLevelLayer::onShare(ShareLevelLayer *a1, cocos2d::CCObject *a2) { GJGameLevel *m_level; // r0 FLAlertLayer *v4; // r0 int m_unlisted; // r6 FLAlertLayer *v6; // r6 UploadPopup *v7; // r0 _BYTE v8[4]; // [sp+10h] [bp-8h] BYREF m_level = a1->m_level; if ( m_level->m_isUploaded ) { sub_776584((int)v8, "This version has already been submitted"); v4 = FLAlertLayer::create(0, (int)"Uploaded", (int)v8, (int)"OK", 0, 380.0); LABEL_6: v6 = v4; sub_774008(v8); v6->show(v6); return; } if ( m_level->m_isVerified.random - m_level->m_isVerified.seed != 1 ) { m_unlisted = m_level->m_unlisted; if ( !m_level->m_unlisted ) { sub_776584( (int)v8, "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(m_unlisted, (int)"Unverified", (int)v8, (int)"OK", m_unlisted, 380.0); goto LABEL_6; } } v7 = UploadPopup::create(m_level); v7->show(v7); ShareLevelLayer::onClose(a1, nullptr); }
GD Web Decomp Icon

GD Web Decomp

Raw Source