// // EditorSoundConfigInfoLayer::FLAlert_Clicked from 0xcd3598 to 0xcd3bec (1620 bytes) // // 3 xrefs: // > `non-virtual thunk to'EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0xcd3bf0 // > @ 0x88018 // > @ 0x14fee78 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:06:29 +0000 // __int64 __fastcall EditorSoundConfigInfoLayer::FLAlert_Clicked(GJEditorSoundConfig **this, FLAlertLayer *a2, char a3) { int v5; // w0 EditorSFXManager *v6; // x0 EditorSFXManager *v7; // x0 GJEditorSoundConfig *v8; // x1 EditorSoundBrowserLayer *v9; // x0 EditorSFXManager *v10; // x0 EditorSFXManager *v11; // x0 const char *v12; // x1 size_t v13; // x0 __int64 v14; // x0 __int64 v15; // x0 EditorSFXManager *v16; // x0 EditorSFXManager *v17; // x0 EditorSoundBrowserLayer *v18; // x0 __int64 v19; // x0 EditorSFXManager *v20; // x0 EditorSFXManager *v21; // x0 __int64 v22; // x0 EditorSFXManager *v23; // x0 __int64 v24; // x0 char *v25; // [xsp+38h] [xbp+38h] __int64 v26; // [xsp+48h] [xbp+48h] BYREF size_t v27; // [xsp+50h] [xbp+50h] void *v28; // [xsp+58h] [xbp+58h] __int64 v29; // [xsp+60h] [xbp+60h] BYREF size_t v30; // [xsp+68h] [xbp+68h] void *v31; // [xsp+70h] [xbp+70h] void *v32; // [xsp+78h] [xbp+78h] BYREF char *v33; // [xsp+80h] [xbp+80h] __int64 v34; // [xsp+88h] [xbp+88h] __int64 v35; // [xsp+90h] [xbp+90h] BYREF __int64 v36; // [xsp+98h] [xbp+98h] void *v37; // [xsp+A0h] [xbp+A0h] if ( !a3 ) return _stack_chk_guard; v5 = (*(__int64 (__fastcall **)(FLAlertLayer *))(*(_QWORD *)a2 + 64LL))(a2); switch ( v5 ) { case 7001: EditorSoundConfigInfoLayer::applyConfig((EditorSoundConfigInfoLayer *)this, 0, 0); return _stack_chk_guard; case 7006: if ( *((_DWORD *)this + 274) != 2 || (v19 = (__int64)*(this + 136)) == 0 || (v20 = (EditorSFXManager *)*(unsigned int *)(v19 + 320), (int)v20 <= 0) ) { EditorSoundConfigInfoLayer::applyConfig((EditorSoundConfigInfoLayer *)this, 1u, 1u); return _stack_chk_guard; } v26 = 0; v27 = 0; v28 = nullptr; v21 = (EditorSFXManager *)EditorSFXManager::sharedState(v20); if ( (unsigned __int8)EditorSFXManager::applyMyConfig(v21, *((_DWORD *)*(this + 136) + 80), 1u, &v26) ) { v29 = 0; v30 = 0; v31 = nullptr; std::string::__init(&v29, "Sound pack merged into your current sounds.", 0x2Bu); v22 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Applied", (char *)&v29, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v22 + 1312LL))(v22); LABEL_24: if ( (v29 & 1) != 0 ) operator delete(v31); LABEL_26: if ( (v26 & 1) != 0 ) operator delete(v28); return _stack_chk_guard; } if ( (v26 & 1) != 0 ) { if ( v27 ) { v29 = 0; v30 = 0; v31 = nullptr; std::string::__init(&v29, v28, v27); goto LABEL_45; } } else if ( (int)(unsigned __int8)v26 >> 1 ) { v31 = v28; v29 = v26; v30 = v27; goto LABEL_45; } v29 = 0; v30 = 0; v31 = nullptr; std::string::__init(&v29, "Failed to apply sound pack.", 0x1Bu); LABEL_45: v12 = (char *)&v29 + 1; if ( (v29 & 1) != 0 ) v12 = (const char *)v31; goto LABEL_22; case 7003: v10 = *(this + 136); if ( !v10 ) return _stack_chk_guard; v26 = 0; v27 = 0; v28 = nullptr; v11 = (EditorSFXManager *)EditorSFXManager::sharedState(v10); if ( (unsigned __int8)EditorSFXManager::overwriteMyConfigFromLive(v11, *((_DWORD *)*(this + 136) + 80), &v26) ) { v29 = 0; v30 = 0; v31 = nullptr; std::string::__init(&v29, "Sound pack updated with your current sound settings.", 0x34u); v15 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Saved", (char *)&v29, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 1312LL))(v15); if ( (v29 & 1) != 0 ) operator delete(v31); EditorSoundConfigInfoLayer::buildSummary((EditorSoundConfigInfoLayer *)this); EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)this); goto LABEL_26; } if ( (v26 & 1) != 0 ) { if ( v27 ) { v29 = 0; v30 = 0; v31 = nullptr; std::string::__init(&v29, v28, v27); goto LABEL_20; } } else if ( (int)(unsigned __int8)v26 >> 1 ) { v31 = v28; v29 = v26; v30 = v27; goto LABEL_20; } v29 = 0; v30 = 0; v31 = nullptr; std::string::__init(&v29, "Failed to overwrite.", 0x14u); LABEL_20: v12 = (char *)&v29 + 1; if ( (v29 & 1) != 0 ) v12 = (const char *)v31; LABEL_22: v25 = (char *)v12; v35 = 0; v36 = 0; v37 = nullptr; v13 = strlen(v12); std::string::__init(&v35, v25, v13); v14 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Error", (char *)&v35, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 1312LL))(v14); if ( (v35 & 1) != 0 ) operator delete(v37); goto LABEL_24; case 7002: v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, &byte_11B8890, 0); v32 = nullptr; v33 = nullptr; v34 = 0; EditorSoundConfigInfoLayer::startServerDelete((GameLevelManager *)this, (char *)&v35, (__int64 *)&v32); if ( v32 ) { if ( v33 != v32 ) v33 += 4 * ~((unsigned __int64)(v33 - 4 - (_BYTE *)v32) >> 2); operator delete(v32); } LABEL_54: if ( (v35 & 1) != 0 ) operator delete(v37); return _stack_chk_guard; case 7004: v16 = *(this + 136); if ( !v16 ) return _stack_chk_guard; if ( *((_DWORD *)this + 274) == 2 && (v16 = (EditorSFXManager *)*((unsigned int *)v16 + 80), (int)v16 > 0) ) { v23 = (EditorSFXManager *)EditorSFXManager::sharedState(v16); EditorSFXManager::removeMyConfig(v23, *((_DWORD *)*(this + 136) + 80)); } else { v17 = (EditorSFXManager *)EditorSFXManager::sharedState(v16); EditorSFXManager::removeFavoriteConfig(v17, *((_DWORD *)*(this + 136) + 79)); } v18 = *(this + 138); if ( v18 ) EditorSoundBrowserLayer::onConfigListChanged(v18); goto LABEL_14; case 7007: EditorSoundConfigInfoLayer::startSFXDownload((EditorSoundConfigInfoLayer *)this); return _stack_chk_guard; case 7005: v6 = *(this + 136); if ( v6 ) { v7 = (EditorSFXManager *)EditorSFXManager::sharedState(v6); v8 = (GJEditorSoundConfig *)EditorSFXManager::copyFavoriteToMyConfig(v7, *(this + 136)); if ( v8 ) { v9 = *(this + 138); if ( v9 ) EditorSoundBrowserLayer::onConfigCopiedToMyLists(v9, v8); LABEL_14: (*((void (__fastcall **)(GJEditorSoundConfig **, _QWORD))*this + 171))(this, 0); return _stack_chk_guard; } v35 = 0; v36 = 0; v37 = nullptr; std::string::__init(&v35, "You already have 50 sound packs. Delete some first.", 0x33u); v24 = FLAlertLayer::create( 0, (cocos2d::CCLabelBMFont *)"Limit Reached", (char *)&v35, (ButtonSprite *)"OK", nullptr); (*(void (__fastcall **)(__int64))(*(_QWORD *)v24 + 1312LL))(v24); goto LABEL_54; } break; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source