// // EditLevelLayer::onShare from 0x49fe10 to 0x49ffe6 (470 bytes) // // 1 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x4a21d4 // // 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:49 +0000 // int __fastcall EditLevelLayer::onShare(ShareLevelLayer **this, cocos2d::CCObject *a2) { GameManager *v3; // r0 GameManager *v4; // r0 GameManager *v5; // r0 GJAccountManager *v7; // r0 GJAccountManager *v8; // r0 _BOOL4 v9; // r8 int *v10; // r0 _BOOL4 v11; // r8 GameManager *v12; // r0 int *v13; // r5 GameManager *v14; // r0 GameManager *v15; // r0 GJGameLevel *v16; // r1 int v17; // r0 int v18[3]; // [sp+Ch] [bp-1Ch] BYREF int v19; // [sp+18h] [bp-10h] BYREF int v20; // [sp+1Ch] [bp-Ch] int v21; // [sp+20h] [bp-8h] v3 = (GameManager *)GameManager::sharedState((GameManager *)this); v4 = (GameManager *)GameManager::safeModeEnabled(v3); if ( v4 ) { v5 = (GameManager *)GameManager::sharedState(v4); return GameManager::showParentalRestrictedAlert(v5); } v7 = (GJAccountManager *)GJAccountManager::sharedState(nullptr); if ( *((_DWORD *)v7 + 70) - *((_DWORD *)v7 + 71) <= 0 ) { v8 = (GJAccountManager *)GJAccountManager::sharedState(v7); return GJAccountManager::showAccountNeededAlert(v8, "share levels"); } std::string::basic_string(v18, (int)*(this + 87) + 304); v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, &unk_B6B226, 0); v9 = sub_49F398((unsigned __int8 *)v18, (unsigned __int8 *)&v19); std::string::~string((int)&v19); std::string::~string((int)v18); if ( v9 ) { v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "You cannot share an empty level.", 0x20u); v10 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Empty", (int)&v19, (ButtonSprite *)"OK", nullptr, 380.0); LABEL_9: v13 = v10; std::string::~string((int)&v19); return (*(int (__fastcall **)(int *))(*v13 + 656))(v13); } std::string::basic_string(v18, (int)*(this + 87) + 280); v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, &unk_B6B226, 0); v11 = sub_49F398((unsigned __int8 *)v18, (unsigned __int8 *)&v19); std::string::~string((int)&v19); v12 = (GameManager *)std::string::~string((int)v18); if ( v11 ) { v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, "You must name your level before sharing it.", 0x2Bu); v10 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"No Name", (int)&v19, (ButtonSprite *)"OK", nullptr, 380.0); goto LABEL_9; } v14 = (GameManager *)GameManager::sharedState(v12); if ( !GameManager::getGameVariable(v14, "0157") ) { v15 = (GameManager *)GameManager::sharedState(nullptr); GameManager::setGameVariable(v15, "0157", (_BYTE *)&dword_0 + 1); v19 = 0; v20 = 0; v21 = 0; std::string::__init( &v19, "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.", 0x1D0u); v13 = FLAlertLayer::create( (int)(this + 80), (cocos2d::CCLabelBMFont *)"Upload Guidelines", (int)&v19, (ButtonSprite *)"OK", nullptr, 380.0); std::string::~string((int)&v19); (*(void (__fastcall **)(int *, int))(*v13 + 36))(v13, 10); return (*(int (__fastcall **)(int *))(*v13 + 656))(v13); } EditLevelLayer::closeTextInputs(this); v17 = ShareLevelLayer::create(*(this + 87), v16); return (*(int (__fastcall **)(int))(*(_DWORD *)v17 + 656))(v17); }
GD Web Decomp Icon

GD Web Decomp

Raw Source