//
// EditorSFXManager::applyConfigDirect from 0x7813a8 to 0x781458 (176 bytes)
//
// 2 xrefs:
// > EditorSFXManager::applyFavoriteConfig @ 0x78148c
// > EditorSoundConfigInfoLayer::applyConfig @ 0x785eec
//
// 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:29 +0000
//
int __fastcall EditorSFXManager::applyConfigDirect(EditorSFXManager *a1, int a2, int a3, int *a4)
{
int v7; // r4
int v8; // r4
int v9; // r8
int v11; // [sp+4h] [bp-14h] BYREF
int v12[3]; // [sp+8h] [bp-10h] BYREF
v7 = a2;
if ( a2 )
{
if ( *(_BYTE *)(a2 + 384) )
{
v8 = a2 + 372;
std::string::basic_string(v12, a2 + 372);
v9 = (v12[0] & 1) != 0 ? v12[1] : (int)LOBYTE(v12[0]) >> 1;
std::string::~string((int)v12);
if ( v9 )
{
v11 = a3;
std::string::basic_string(v12, v8);
v7 = EditorSFXManager::importFromString(a1, (unsigned __int8 *)v12, &v11, a4);
std::string::~string((int)v12);
return v7;
}
}
if ( a4 )
std::string::assign(a4, "Config has no data.");
return 0;
}
if ( !a4 )
return 0;
std::string::assign(a4, "No config to apply.");
return v7;
}