// // LevelInfoLayer::confirmOwnerDelete from 0x3b133c to 0x3b145e (290 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 LevelInfoLayer::confirmOwnerDelete(LevelInfoLayer *a1, cocos2d::CCObject *a2) { int m_isBusy; // r4 GameManager *v4; // r0 GJAccountManager *v5; // r0 GJAccountManager *v6; // r0 GJGameLevel *m_level; // r1 GameManager *v8; // r0 int random; // r9 int seed; // r10 FLAlertLayer *v11; // r4 _BYTE v12[4]; // [sp+Ch] [bp-Ch] BYREF _BYTE v13[4]; // [sp+10h] [bp-8h] BYREF m_isBusy = a1->m_isBusy; if ( !a1->m_isBusy ) { v4 = GameManager::sharedState(); if ( v4->m_playerUserID.random - v4->m_playerUserID.seed == a1->m_level->m_userID.random - a1->m_level->m_userID.seed ) { m_isBusy = 1; } else { v5 = GJAccountManager::sharedState(); if ( v5->m_accountID != v5->m_unkInt1 ) { v6 = GJAccountManager::sharedState(); m_level = a1->m_level; m_isBusy = v6->m_accountID - v6->m_unkInt1 + m_level->m_accountID.seed + (v6->m_accountID - v6->m_unkInt1 == m_level->m_accountID.random - m_level->m_accountID.seed) + -m_level->m_accountID.seed - (v6->m_accountID - v6->m_unkInt1); } } v8 = GameManager::sharedState(); random = v8->m_hasRP.random; seed = v8->m_hasRP.seed; sub_776584( (int)v12, "Do you want to delete this level from the server?\n" "(Your level will no longer be available online)"); if ( !m_isBusy && random - seed > 1 ) sub_7753D4( (int)v12, "Do you want to delete this level from the server?\n" "(The level will no longer be available online)\n" "(Elder Enabled)"); sub_775C20(v13, v12); v11 = FLAlertLayer::create( (int)&a1->FLAlertLayerProtocol, (int)"Remove Server Level", (int)v13, (int)"Cancel", (int)"DELETE", 380.0); sub_774008(v13); ButtonSprite::updateBGImage(v11->m_button2, "GJ_button_06.png"); v11->setTag(v11, 5); v11->show(v11); sub_774008(v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source