// // MusicDownloadManager::createCustomSFXFolder from 0x56e48c to 0x56e576 (234 bytes) // // 4 xrefs: // > sub_575E04 @ 0x576048 // > sub_575E04 @ 0x57607a // > SFXBrowser::setTextPopupClosed @ 0x6c44d2 // > SFXFolderPickerPopup::setTextPopupClosed @ 0x730218 // // 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:52:35 +0000 // SFXInfoObject *__fastcall MusicDownloadManager::createCustomSFXFolder( cocos2d::CCDictionary **a1, unsigned __int8 *a2, int a3, int a4) { int CustomSFXFolderForID; // r9 int v8; // r0 int v9; // r1 int v10; // r2 int v11; // r3 int v12; // r3 SFXInfoObject *v13; // r4 int v15; // [sp+0h] [bp-14h] BYREF int v16; // [sp+4h] [bp-10h] int v17; // [sp+8h] [bp-Ch] CustomSFXFolderForID = MusicDownloadManager::getCustomSFXFolderForID((MusicDownloadManager *)a1, a3); if ( !CustomSFXFolderForID ) CustomSFXFolderForID = MusicDownloadManager::getCustomSFXRoot(a1); sub_56D02C(&v15, a2); if ( (*a2 & 1) != 0 ) { **((_BYTE **)a2 + 2) = 0; *((_DWORD *)a2 + 1) = 0; } else { a2[1] = 0; *a2 = 0; } std::string::reserve((int *)a2, 0); v8 = v15; v9 = v16; v10 = v17; v15 = 0; v16 = 0; v17 = 0; *(_DWORD *)a2 = v8; *((_DWORD *)a2 + 1) = v9; *((_DWORD *)a2 + 2) = v10; std::string::~string((int)&v15); v11 = *a2; if ( (v11 & 1) != 0 ) v12 = *((_DWORD *)a2 + 1); else v12 = v11 >> 1; if ( !v12 ) std::string::assign((int *)a2, "New Folder"); if ( (unsigned int)(a4 - 2) > 0xFFFFFD || MusicDownloadManager::getCustomSFXObject((MusicDownloadManager *)a1, a4) ) a4 = MusicDownloadManager::mintCustomSFXID((MusicDownloadManager *)a1); std::string::basic_string(&v15, (int)a2); v13 = SFXFolderObject::create(a4, (int)&v15, *(_DWORD *)(CustomSFXFolderForID + 72)); std::string::~string((int)&v15); *((_DWORD *)v13 + 18) = a4; cocos2d::CCDictionary::setObject(a1[133], v13, a4); cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(CustomSFXFolderForID + 112), v13); return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source