// // EditLevelLayer::onShare from 0x3b68a4 to 0x3b6a54 (432 bytes) // // 1 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x3b8116 // // 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 EditLevelLayer::onShare(EditLevelLayer *a1, cocos2d::CCObject *a2) { GJAccountManager *v3; // r0 FLAlertLayer *v4; // r0 int v5; // r8 int v6; // r8 FLAlertLayer *v7; // r5 GameManager *v8; // r0 GameManager *v9; // r0 ShareLevelLayer *v10; // r0 _BYTE v11[4]; // [sp+Ch] [bp-10h] BYREF _BYTE v12[4]; // [sp+10h] [bp-Ch] BYREF v3 = GJAccountManager::sharedState(); if ( v3->m_accountID - v3->m_unkInt1 <= 0 ) { sub_776584( (int)v12, "You need an account to share levels. You can create one for free from settings in the main menu."); v4 = FLAlertLayer::create(0, (int)"Account Needed", (int)v12, (int)"Close", 0, 300.0); LABEL_7: v7 = v4; sub_774008(v12); LABEL_10: v7->show(v7); return; } sub_775C20(v11, &a1->m_level->m_levelString); sub_776584((int)v12, (char *)&unk_939830); v5 = sub_774DBC(v11, v12); sub_774008(v12); sub_774008(v11); if ( !v5 ) { sub_776584((int)v12, "You cannot share an empty level."); v4 = FLAlertLayer::create(0, (int)"Empty", (int)v12, (int)"OK", 0, 380.0); goto LABEL_7; } sub_775C20(v11, &a1->m_level->m_levelName); sub_776584((int)v12, (char *)&unk_939830); v6 = sub_774DBC(v11, v12); sub_774008(v12); sub_774008(v11); if ( !v6 ) { sub_776584((int)v12, "You must name your level before sharing it."); v4 = FLAlertLayer::create(0, (int)"No Name", (int)v12, (int)"OK", 0, 380.0); goto LABEL_7; } v8 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v8, "0157") ) { v9 = GameManager::sharedState(); GameManager::setGameVariable(v9, "0157", 1); sub_776584( (int)v12, "Hateful, abusive, or otherwise inappropriate content, whether it is in the level, name, or description may lead to" " deletion. The same applies to levels abusing cheats or exploits. Stealing assets from other levels is discouraged and may stop a level from being rated depending on the context, severity, credit, and more. Level" "s verified with hacks cannot be rated.\n" "These guidelines and their enforcement are entirely at RobTop's discretion."); v7 = FLAlertLayer::create((int)&a1->FLAlertLayerProtocol, (int)"Upload Guidelines", (int)v12, (int)"OK", 0, 380.0); sub_774008(v12); v7->setTag(v7, 10); goto LABEL_10; } EditLevelLayer::closeTextInputs(a1); v10 = ShareLevelLayer::create(a1->m_level); v10->show(v10); }
GD Web Decomp Icon

GD Web Decomp

Raw Source