// // FMODAudioEngine::preloadEffectAsync from 0x30476c to 0x3048ae (322 bytes) // // 1 xrefs: // > FMODAudioEngine::queuePlayEffect @ 0x30498e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // FMOD::Sound *__fastcall FMODAudioEngine::preloadEffectAsync(_DWORD *a1, const void **a2) { _DWORD *v3; // r9 unsigned int v5; // r0 unsigned int v6; // r8 unsigned int v7; // r11 const void ***v8; // r3 int v9; // r10 const void **v10; // r4 int v11; // r6 FMOD::Sound *v12; // r4 cocos2d::CCFileUtils *v13; // r0 cocos2d::CCString *v14; // r0 char *CString; // r0 FMOD::System *v16; // r0 _DWORD *v17; // r0 FMOD::Sound *v19; // [sp+14h] [bp-A0h] BYREF const char *v20; // [sp+18h] [bp-9Ch] BYREF FMOD_CREATESOUNDEXINFO v21; // [sp+1Ch] [bp-98h] BYREF v3 = a1 + 271; v5 = sub_2FDFF0(a2); v6 = a1[272]; v7 = v5; v8 = *(const void ****)(a1[271] + 4 * (v5 % v6)); v9 = v5 % v6; if ( v8 && (v10 = *v8) != nullptr ) { v11 = 0; do { if ( (const void *)v7 == v10[3] && std::operator==(a2, v10 + 1) ) { ++v11; } else if ( v11 ) { return (FMOD::Sound *)*std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( v3, a2); } v10 = (const void **)*v10; } while ( v10 && (unsigned int)v10[3] % v6 == v9 ); if ( !v11 ) goto LABEL_14; return (FMOD::Sound *)*std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( v3, a2); } else { LABEL_14: v19 = nullptr; v13 = cocos2d::CCFileUtils::sharedFileUtils(); ((void (__fastcall *)(FMOD_CREATESOUNDEXINFO *, cocos2d::CCFileUtils *, const void *, _DWORD))v13->createCCArrayWithContentsOfFile)( &v21, v13, *a2, 0); sub_776584((int)&v20, (char *)v21.cbsize); sub_774008(&v21); if ( *((_DWORD *)v20 - 3) ) { sub_775170(&v20); if ( *v20 != 47 ) { v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"file:///android_asset/%s", (const char *)*a2); CString = (char *)cocos2d::CCString::getCString(v14); sub_7753D4((int)&v20, CString); } } memset(&v21, 0, sizeof(v21)); v21.suggestedsoundtype = FMOD_SOUND_TYPE_OGGVORBIS; v16 = (FMOD::System *)a1[97]; v21.cbsize = 144; a1[102] = FMOD::System::createSound(v16, v20, 0x801000Au, &v21, &v19); ERRCHECK_fn(); if ( v19 ) { v17 = std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[]( v3, a2); *v17 = v19; } v12 = v19; sub_774008(&v20); } return v12; }
GD Web Decomp Icon

GD Web Decomp

Raw Source