// // LevelInfoLayer::confirmOwnerDelete from 0x6d6a68 to 0x6d6d10 (680 bytes) // // 3 xrefs: // > @ 0x3bdf0 // > LevelInfoLayer::init @ 0x6dbee0 // > @ 0x1229e30 // // 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) { GameManager *v3; // x0 GJAccountManager *v4; // x0 GJAccountManager *v5; // x0 GameManager *v6; // x0 int v7; // w21 FLAlertLayer *v8; // x20 void *v9; // x0 void *v10; // x0 unsigned int *v11; // x20 int v12; // w1 unsigned int *v13; // x1 int v14; // w2 __int64 v15; // [xsp+48h] [xbp+48h] BYREF __int64 v16; // [xsp+50h] [xbp+50h] BYREF if ( !a1->m_isBusy ) { v3 = GameManager::sharedState(); if ( v3->m_playerUserID.random - v3->m_playerUserID.seed == a1->m_level->m_userID.random - a1->m_level->m_userID.seed || (v4 = GJAccountManager::sharedState(), v4->m_accountID != v4->m_unkInt1) && (v5 = GJAccountManager::sharedState(), v5->m_accountID - v5->m_unkInt1 == a1->m_level->m_accountID.random - a1->m_level->m_accountID.seed) ) { GameManager::sharedState(); sub_D153B8( (int)&v15, "Do you want to delete this level from the server?\n" "(Your level will no longer be available online)"); } else { v6 = GameManager::sharedState(); v7 = v6->m_hasRP.random - v6->m_hasRP.seed; sub_D153B8( (int)&v15, "Do you want to delete this level from the server?\n" "(Your level will no longer be available online)"); if ( v7 > 1 ) sub_D1798C( &v15, "Do you want to delete this level from the server?\n" "(The level will no longer be available online)\n" "(Elder Enabled)", 152); } sub_D18D28(&v16, &v15); v8 = FLAlertLayer::create((int)a1 + 440, (__int64)"Remove Server Level", (__int64)&v16); v9 = (void *)(v16 - 24); if ( (__int64 *)(v16 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v16 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v16 - 8); *(_DWORD *)(v16 - 8) = v14 - 1; } if ( v14 <= 0 ) operator delete(v9); } ButtonSprite::updateBGImage(v8->m_button2, "GJ_button_06.png"); v8->setTag(v8, 5); v8->show(v8); v10 = (void *)(v15 - 24); if ( (__int64 *)(v15 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v15 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *(_DWORD *)(v15 - 8); *(_DWORD *)(v15 - 8) = v12 - 1; } if ( v12 <= 0 ) operator delete(v10); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source