// // SFXBrowser::setTextPopupClosed from 0x6c4300 to 0x6c451c (540 bytes) // // 1 xrefs: // > `non-virtual thunk to'SFXBrowser::setTextPopupClosed @ 0x6c4538 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:56:53 +0000 // GameManager *__fastcall SFXBrowser::setTextPopupClosed(FLAlertLayer *this, int a2, unsigned __int8 *a3) { GameManager *result; // r0 int v6; // r8 int v7; // r3 int v8; // r3 int v9; // r3 MusicDownloadManager *v10; // r0 int v11; // r3 cocos2d::CCDictionary **v12; // r0 MusicDownloadManager *v13; // r0 cocos2d::CCString *v14; // r0 const char *CString; // r8 size_t v16; // r0 void (__fastcall *v17)(FLAlertLayer *, cocos2d::CCNode *, int); // r10 cocos2d::CCNode *v18; // r0 int v19; // r3 int v20; // r3 int v21; // r0 int v22; // r8 MusicDownloadManager *v23; // r9 int v24; // r3 int v25; // r3 SFXSearchResult *v26; // r0 MusicDownloadManager *ActiveFolder; // r0 cocos2d::CCDictionary **v28; // r8 int v29; // r0 char *v30; // [sp+Ch] [bp-3Ch] BYREF int v31; // [sp+10h] [bp-38h] BYREF int v32[3]; // [sp+14h] [bp-34h] BYREF int v33[3]; // [sp+20h] [bp-28h] BYREF int v34[3]; // [sp+2Ch] [bp-1Ch] BYREF int v35[3]; // [sp+38h] [bp-10h] BYREF if ( *((_BYTE *)this + 660) ) { *((_BYTE *)this + 660) = 0; result = (GameManager *)GameManager::sharedState(this); if ( *((_DWORD *)result + 102) ) { result = (GameManager *)GameManager::sharedState(result); v6 = *(_DWORD *)(*((_DWORD *)result + 102) + 2084); if ( v6 ) { v7 = *a3; if ( (v7 & 1) != 0 ) v8 = *((_DWORD *)a3 + 1); else v8 = v7 >> 1; if ( v8 ) { std::string::basic_string(v32, (int)a3); } else { memset(v32, 0, sizeof(v32)); std::string::__init(v32, "Imported", 8u); } v30 = nullptr; v31 = 0; v9 = *(unsigned __int8 *)(v6 + 464); v10 = (MusicDownloadManager *)(v9 << 31); if ( (v9 & 1) != 0 ) v11 = *(_DWORD *)(v6 + 468); else v11 = v9 >> 1; if ( v11 ) { v12 = (cocos2d::CCDictionary **)MusicDownloadManager::sharedState(v10); MusicDownloadManager::importCustomSFXSetup(v12, (unsigned __int8 *)(v6 + 464), (int)v32, 0, (int *)&v30, &v31); } else { v13 = (MusicDownloadManager *)MusicDownloadManager::sharedState(v10); MusicDownloadManager::importCustomSFXMappings( v13, (unsigned __int8 **)(v6 + 452), (unsigned __int8 *)v32, (int *)&v30, &v31); } if ( v31 > 0 ) v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Imported %i (%i existing)", v30); else v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"Imported %i", v30); CString = (const char *)cocos2d::CCString::getCString(v14); memset(v33, 0, sizeof(v33)); v16 = strlen(CString); std::string::__init(v33, CString, v16); v17 = *(void (__fastcall **)(FLAlertLayer *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232); std::string::basic_string(v34, (int)v33); memset(v35, 0, sizeof(v35)); std::string::__init(v35, &unk_B6B226, 0); v18 = TextAlertPopup::create((int)v34, (cocos2d::CCDelayTime *)0x3F666666, 0.5, 150, (int)v35); v17(this, v18, 100); std::string::~string((int)v35); std::string::~string((int)v34); FLAlertLayer::requestRebuild(this); std::string::~string((int)v33); return (GameManager *)std::string::~string((int)v32); } } } else { v19 = *a3; if ( *((int *)this + 178) <= 1 ) { if ( (v19 & 1) != 0 ) v25 = *((_DWORD *)a3 + 1); else v25 = v19 >> 1; if ( v25 ) { v26 = *((SFXSearchResult **)this + 136); if ( v26 ) { if ( *((_DWORD *)v26 + 26) == 4 ) { ActiveFolder = (MusicDownloadManager *)SFXSearchResult::getActiveFolder(v26); if ( ActiveFolder ) { v28 = (cocos2d::CCDictionary **)MusicDownloadManager::sharedState(ActiveFolder); std::string::basic_string(v35, (int)a3); v29 = SFXSearchResult::getActiveFolder(*((SFXSearchResult **)this + 136)); MusicDownloadManager::createCustomSFXFolder(v28, (unsigned __int8 *)v35, *(_DWORD *)(v29 + 72), 0); std::string::~string((int)v35); } } } } } else { if ( (v19 & 1) != 0 ) v20 = *((_DWORD *)a3 + 1); else v20 = v19 >> 1; if ( v20 ) { v21 = MusicDownloadManager::sharedState(this); v22 = *((_DWORD *)this + 178); v23 = (MusicDownloadManager *)v21; std::string::basic_string(v35, (int)a3); MusicDownloadManager::renameCustomSFXObject(v23, v22, (unsigned __int8 *)v35, v24); std::string::~string((int)v35); } *((_DWORD *)this + 178) = 0; } return (GameManager *)FLAlertLayer::requestRebuild(this); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source