// // SFXBrowser::onImportFile from 0x6c8568 to 0x6c86d2 (362 bytes) // // 0 xrefs: // // 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:56 +0000 // int __fastcall SFXBrowser::onImportFile(SFXBrowser *this, cocos2d::CCObject *a2) { cocos2d::CCDictionary **v3; // r0 int v4; // r0 int v5; // r3 int *v6; // r6 void (__fastcall *v7)(SFXBrowser *, cocos2d::CCNode *, int); // r8 cocos2d::CCNode *v8; // r0 char *v9; // r2 cocos2d::CCString *v10; // r0 char *v11; // r2 const char *CString; // r7 size_t v13; // r0 void (__fastcall *v14)(SFXBrowser *, cocos2d::CCNode *, int); // r10 cocos2d::CCNode *v15; // r0 char *v17; // [sp+8h] [bp-48h] BYREF int v18; // [sp+Ch] [bp-44h] BYREF _DWORD v19[2]; // [sp+10h] [bp-40h] BYREF char *v20; // [sp+18h] [bp-38h] int v21[3]; // [sp+1Ch] [bp-34h] BYREF int v22; // [sp+28h] [bp-28h] BYREF int v23; // [sp+2Ch] [bp-24h] int v24; // [sp+30h] [bp-20h] int v25[3]; // [sp+34h] [bp-1Ch] BYREF int v26[3]; // [sp+40h] [bp-10h] BYREF v19[0] = 0; v19[1] = 0; v20 = nullptr; v17 = nullptr; v18 = 0; v3 = (cocos2d::CCDictionary **)MusicDownloadManager::sharedState(this); v4 = MusicDownloadManager::importCustomSFXFromFile(v3, (int)v19, (int *)&v17, &v18); if ( !v4 ) { v5 = *(_DWORD *)this; v6 = v21; memset(v21, 0, sizeof(v21)); v7 = *(void (__fastcall **)(SFXBrowser *, cocos2d::CCNode *, int))(v5 + 232); std::string::__init(v21, "Import failed", 0xDu); v22 = 0; v23 = 0; v24 = 0; std::string::__init(&v22, &unk_B6B226, 0); v8 = TextAlertPopup::create((int)v21, (cocos2d::CCDelayTime *)0x3F666666, 0.5, 150, (int)&v22); v7(this, v8, 100); std::string::~string((int)&v22); LABEL_14: std::string::~string((int)v6); return std::string::~string((int)v19); } if ( v4 == 1 ) { if ( v18 <= 0 ) { if ( (v19[0] & 1) != 0 ) v11 = v20; else v11 = (char *)v19 + 1; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Imported %i to '%s'", v17, v11, LOBYTE(v19[0]) << 31); } else { if ( (v19[0] & 1) != 0 ) v9 = v20; else v9 = (char *)v19 + 1; v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Imported %i to '%s' (%i existing)", v17, v9); } CString = (const char *)cocos2d::CCString::getCString(v10); v22 = 0; v6 = &v22; v23 = 0; v24 = 0; v13 = strlen(CString); std::string::__init(&v22, CString, v13); v14 = *(void (__fastcall **)(SFXBrowser *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232); std::string::basic_string(v25, (int)&v22); memset(v26, 0, sizeof(v26)); std::string::__init(v26, &unk_B6B226, 0); v15 = TextAlertPopup::create((int)v25, (cocos2d::CCDelayTime *)0x3F666666, 0.5, 150, (int)v26); v14(this, v15, 100); std::string::~string((int)v26); std::string::~string((int)v25); SFXBrowser::refreshCustomList((int *)this); goto LABEL_14; } return std::string::~string((int)v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source