// // LevelInfoLayer::confirmClone from 0x6d60b0 to 0x6d622c (380 bytes) // // 5 xrefs: // > LevelInfoLayer::numberInputClosed @ 0x6d6968 // > LevelInfoLayer::tryCloneLevel @ 0x6d70d8 // > @ 0x76470 // > LevelInfoLayer::init @ 0x6dbf78 // > @ 0x122bf08 // // 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::confirmClone(LevelInfoLayer *a1, cocos2d::CCObject *a2) { int v2; // w20 int v3; // w21 GameManager *v4; // x0 char *v5; // x1 FLAlertLayer *v6; // x20 void *v7; // x0 unsigned int *v8; // x2 int v9; // w1 __int64 v10; // [xsp+40h] [xbp+40h] BYREF v2 = (int)a1; if ( !a1->m_isBusy ) { v3 = a1->m_level->m_userID.random - a1->m_level->m_userID.seed; v4 = GameManager::sharedState(); if ( v3 == v4->m_playerUserID.random - v4->m_playerUserID.seed ) v5 = "Create a copy of this level?\n(Creator enabled)"; else v5 = "Create a copy of this level?"; sub_D153B8((int)&v10, v5); v6 = FLAlertLayer::create(v2 + 440, (__int64)"Clone Level", (__int64)&v10); v7 = (void *)(v10 - 24); if ( (__int64 *)(v10 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v8 = (unsigned int *)(v10 - 8); do v9 = __ldaxr(v8); while ( __stlxr(v9 - 1, v8) ); } else { v9 = *(_DWORD *)(v10 - 8); *(_DWORD *)(v10 - 8) = v9 - 1; } if ( v9 <= 0 ) operator delete(v7); } v6->setTag(v6, 6); v6->show(v6); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source