//
// EditorSFXManager::setGlobalVolume from 0xcbf60c to 0xcbf638 (44 bytes)
//
// 2 xrefs:
// > EditorPauseLayer::editorSFXSliderChanged @ 0x8b62c4
// > ??> @ 0xa65d0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:06:16 +0000
//
float __fastcall EditorSFXManager::setGlobalVolume(EditorSFXManager *this, float result)
{
if ( result < 0.0 )
{
*((_DWORD *)this + 48) = 0;
return 0.0;
}
else
{
if ( result > 1.0 )
result = 1.0;
*((float *)this + 48) = result;
}
return result;
}