Workaround: Force audio provider

This hides the audio_provider box in the settings and forces the proper provider based on boot path.
Stop-gap solution until we decided what to do with vsh settings.
This commit is contained in:
Megamouse 2022-05-07 14:48:46 +02:00
parent d83fac4247
commit 2b325de680
3 changed files with 26 additions and 12 deletions

View file

@ -741,6 +741,16 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
}
}
}
// Force audio provider
if (m_path.ends_with("vsh.self"sv))
{
g_cfg.audio.provider.set(audio_provider::rsxaudio);
}
else
{
g_cfg.audio.provider.set(audio_provider::cell_audio);
}
}
initalize_timebased_time();