// // EditorSoundConfigInfoLayer::onDownloadSFX from 0x78856c to 0x7886a0 (308 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:59:34 +0000 // int __fastcall EditorSoundConfigInfoLayer::onDownloadSFX(EditorSoundConfigInfoLayer *this, cocos2d::CCObject *a2) { int v3; // r4 int v4; // r4 void (__fastcall *v5)(EditorSoundConfigInfoLayer *, cocos2d::CCNode *, int); // r9 cocos2d::CCNode *v6; // r0 char *v7; // r8 cocos2d::CCString *v8; // r0 const char *CString; // r0 char *v10; // r9 size_t v11; // r0 size_t v12; // r0 int *v13; // r4 char *v15[3]; // [sp+8h] [bp-2Ch] BYREF int v16; // [sp+14h] [bp-20h] BYREF int v17; // [sp+18h] [bp-1Ch] char *v18; // [sp+1Ch] [bp-18h] int v19; // [sp+20h] [bp-14h] BYREF int v20; // [sp+24h] [bp-10h] int v21; // [sp+28h] [bp-Ch] EditorSoundConfigInfoLayer::missingSFXIDs((EditorSoundConfigInfoLayer *)v15, (int)this); v3 = v15[1] - v15[0]; std::__vector_base::~__vector_base(v15); v4 = v3 >> 2; if ( v4 ) { v7 = (char *)this + 720; v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Download %i SFX from this pack?", (const char *)v4); CString = (const char *)cocos2d::CCString::getCString(v8); v16 = 0; v17 = 0; v18 = nullptr; v10 = (char *)CString; v11 = strlen(CString); std::string::__init(&v16, v10, v11); v19 = 0; v20 = 0; if ( (v16 & 1) == 0 ) v10 = (char *)&v16 + 1; v21 = 0; if ( (v16 & 1) != 0 ) v10 = v18; v12 = strlen(v10); std::string::__init(&v19, v10, v12); v13 = FLAlertLayer::create( (int)v7, (cocos2d::CCLabelBMFont *)"Download SFX", (int)&v19, (ButtonSprite *)"Cancel", (ButtonSprite *)"Download", 300.0); std::string::~string((int)&v19); (*(void (__fastcall **)(int *, int))(*v13 + 36))(v13, 7007); (*(void (__fastcall **)(int *))(*v13 + 656))(v13); } else { v5 = *(void (__fastcall **)(EditorSoundConfigInfoLayer *, cocos2d::CCNode *, int))(*(_DWORD *)this + 232); v16 = 0; v17 = 0; v18 = nullptr; std::string::__init(&v16, "All SFX downloaded", 0x12u); v19 = 0; v20 = 0; v21 = 0; std::string::__init(&v19, &unk_B6B226, 0); v6 = TextAlertPopup::create((int)&v16, (cocos2d::CCDelayTime *)0x3F000000, 0.6, 150, (int)&v19); v5(this, v6, 100); std::string::~string((int)&v19); } return std::string::~string((int)&v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source