// // FMODAudioEngine::preloadEffectAsync from 0x3edf74 to 0x3ee0bc (328 bytes) // // 1 xrefs: // > FMODAudioEngine::queuePlayEffect @ 0x3ee1a0 // // 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:47:11 +0000 // int __fastcall FMODAudioEngine::preloadEffectAsync(int a1, int a2) { char *v2; // r10 int v3; // r7 int v6; // r4 int v7; // r1 int v8; // r2 size_t v9; // r0 _BYTE *v10; // r3 cocos2d::CCString *v12; // r0 char *CString; // r0 int v14; // [sp+Ch] [bp-ACh] BYREF int v15; // [sp+10h] [bp-A8h] _BYTE *v16; // [sp+14h] [bp-A4h] char v17; // [sp+18h] [bp-A0h] BYREF char v18; // [sp+19h] [bp-9Fh] BYREF char *v19; // [sp+20h] [bp-98h] _DWORD v20[36]; // [sp+24h] [bp-94h] BYREF v3 = a1 + 884; if ( !std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find( (_DWORD *)(a1 + 884), (unsigned __int8 *)a2) ) { v7 = cocos2d::CCFileUtils::sharedFileUtils(nullptr); if ( (*(_BYTE *)a2 & 1) != 0 ) v8 = *(_DWORD *)(a2 + 8); else v8 = a2 + 1; (*(void (__fastcall **)(char *, int, int, _DWORD))(*(_DWORD *)v7 + 24))(&v17, v7, v8, 0); if ( (v17 & 1) == 0 ) v2 = &v18; v14 = 0; if ( (v17 & 1) != 0 ) v2 = v19; v15 = 0; v16 = nullptr; v9 = strlen(v2); std::string::__init(&v14, v2, v9); std::string::~string((int)&v17); if ( (v14 & 1) != 0 ) { if ( !v15 ) { LABEL_12: memset(v20, 0, sizeof(v20)); v20[18] = 10; v20[0] = 144; *(_DWORD *)(a1 + 388) = FMOD::System::createSound(); ERRCHECK_fn(); v6 = 0; std::string::~string((int)&v14); return v6; } v10 = v16; } else { if ( !((unsigned __int8)v14 >> 1) ) goto LABEL_12; v10 = (char *)&v14 + 1; } if ( *v10 != 47 ) { if ( (*(_BYTE *)a2 & 1) != 0 ) v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"file:///android_asset/%s", *(const char **)(a2 + 8)); else v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"file:///android_asset/%s", (const char *)(a2 + 1)); CString = (char *)cocos2d::CCString::getCString(v12); std::string::assign(&v14, CString); } goto LABEL_12; } return *std::unordered_map::operator[](v3, (unsigned __int8 *)a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source