// // EditLevelLayer::FLAlert_Clicked from 0x1001fe120 to 0x1001fe395 (629 bytes) // // 2 xrefs: // > sub_1001FE4E0 @ 0x1001fe4ec // > @ 0x1008da7f8 // // 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 EditLevelLayer::FLAlert_Clicked(EditLevelLayer *a1, FLAlertLayer *a2, bool a3) { __int128 v3; // xmm0 bool v5; // r12 GameLevelManager *v6; // rax GJGameLevel *m_level; // rsi LocalLevelManager *v8; // rax GameLevelManager *v9; // r14 GJGameLevel *v10; // rax unsigned int v11; // r15d std::string *p_m_levelDesc; // rax GameManager *v13; // rax char updated; // r14 UploadActionPopup *m_descriptionPopup; // rax UploadActionPopup *v16; // rax void *v17[3]; // [rsp+8h] [rbp-58h] BYREF __int128 v18; // [rsp+20h] [rbp-40h] BYREF void *__p; // [rsp+30h] [rbp-30h] v5 = !a3; if ( !(!a3 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 4)) ) { ((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 0); v6 = GameLevelManager::sharedState(); m_level = a1->m_level; GameLevelManager::deleteLevel(v6, m_level); EditLevelLayer::onBack(a1, m_level); return; } if ( !(v5 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 7)) ) { EditLevelLayer::onClone(a1); return; } if ( !(v5 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 8)) ) { v8 = LocalLevelManager::sharedState(); LocalLevelManager::moveLevelToTop(v8, a1->m_level); return; } if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 10 ) { EditLevelLayer::onShare(a1, a2); return; } if ( ((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) == 5 ) { if ( !a3 ) { EditLevelLayer::onEdit(a1, a2); return; } LABEL_16: v13 = GameManager::sharedState(); GameManager::openEditorGuide(v13); return; } if ( v5 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 9) ) { if ( v5 | (((unsigned int (__fastcall *)(FLAlertLayer *))a2->getTag)(a2) != 6) ) return; goto LABEL_16; } EditLevelLayer::closeTextInputs(a1); GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate; v9 = GameLevelManager::sharedState(); v10 = a1->m_level; v11 = v10->m_levelID.random - v10->m_levelID.seed; if ( (v10->m_levelDesc.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70(&v18, v10->m_levelDesc.m_data.m_long.longStorage, v10->m_levelDesc.m_data.m_long.size, *(double *)&v3); } else { p_m_levelDesc = &v10->m_levelDesc; __p = p_m_levelDesc->m_data.m_long.longStorage; v3 = *(_OWORD *)&p_m_levelDesc->m_data.m_short.sizex2; v18 = *(_OWORD *)&p_m_levelDesc->m_data.m_short.sizex2; } updated = GameLevelManager::updateDescription(v9, v11, &v18); if ( (v18 & 1) != 0 ) operator delete(__p); if ( updated ) { m_descriptionPopup = a1->m_descriptionPopup; if ( m_descriptionPopup ) { m_descriptionPopup->m_delegate = nullptr; a1->m_descriptionPopup = nullptr; } sub_100030790(v17, "Updating description...", *(double *)&v3); v16 = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, v17); a1->m_descriptionPopup = v16; if ( ((__int64)v17[0] & 1) != 0 ) { operator delete(v17[2]); v16 = a1->m_descriptionPopup; } ((void (__fastcall *)(UploadActionPopup *))v16->show)(v16); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source