mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-05 02:02:01 +00:00
Resolve elses.
This commit is contained in:
parent
a390b7515f
commit
9aec3e9e77
1 changed files with 23 additions and 24 deletions
|
@ -425,16 +425,16 @@ namespace Ryujinx.Ui
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Logger.Warning?.Print(LogClass.Audio, "OpenAL is not supported, trying to fall back to SoundIO.");
|
Logger.Warning?.Print(LogClass.Audio, "OpenAL is not supported, trying to fall back to SoundIO.");
|
||||||
}
|
|
||||||
|
if (SoundIoHardwareDeviceDriver.IsSupported)
|
||||||
|
{
|
||||||
|
Logger.Warning?.Print(LogClass.Audio, "Found SoundIO, changing configuration.");
|
||||||
|
|
||||||
if (SoundIoHardwareDeviceDriver.IsSupported)
|
ConfigurationState.Instance.System.AudioBackend.Value = AudioBackend.SoundIo;
|
||||||
{
|
SaveConfig();
|
||||||
Logger.Warning?.Print(LogClass.Audio, "Found SoundIO, changing configuration.");
|
|
||||||
|
|
||||||
ConfigurationState.Instance.System.AudioBackend.Value = AudioBackend.SoundIo;
|
deviceDriver = new SoundIoHardwareDeviceDriver();
|
||||||
SaveConfig();
|
}
|
||||||
|
|
||||||
deviceDriver = new SoundIoHardwareDeviceDriver();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -464,16 +464,16 @@ namespace Ryujinx.Ui
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Logger.Warning?.Print(LogClass.Audio, "SDL2 is not supported, trying to fall back to OpenAL.");
|
Logger.Warning?.Print(LogClass.Audio, "SDL2 is not supported, trying to fall back to OpenAL.");
|
||||||
}
|
|
||||||
|
if (OpenALHardwareDeviceDriver.IsSupported)
|
||||||
|
{
|
||||||
|
Logger.Warning?.Print(LogClass.Audio, "Found OpenAL, changing configuration.");
|
||||||
|
|
||||||
if (OpenALHardwareDeviceDriver.IsSupported)
|
ConfigurationState.Instance.System.AudioBackend.Value = AudioBackend.OpenAl;
|
||||||
{
|
SaveConfig();
|
||||||
Logger.Warning?.Print(LogClass.Audio, "Found OpenAL, changing configuration.");
|
|
||||||
|
|
||||||
ConfigurationState.Instance.System.AudioBackend.Value = AudioBackend.OpenAl;
|
deviceDriver = new OpenALHardwareDeviceDriver();
|
||||||
SaveConfig();
|
}
|
||||||
|
|
||||||
deviceDriver = new OpenALHardwareDeviceDriver();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -503,16 +503,15 @@ namespace Ryujinx.Ui
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Logger.Warning?.Print(LogClass.Audio, "SDL2 is not supported, trying to fall back to SoundIO.");
|
Logger.Warning?.Print(LogClass.Audio, "SDL2 is not supported, trying to fall back to SoundIO.");
|
||||||
}
|
if (SoundIoHardwareDeviceDriver.IsSupported)
|
||||||
|
{
|
||||||
if (SoundIoHardwareDeviceDriver.IsSupported)
|
Logger.Warning?.Print(LogClass.Audio, "Found SoundIO, changing configuration.");
|
||||||
{
|
|
||||||
Logger.Warning?.Print(LogClass.Audio, "Found SoundIO, changing configuration.");
|
|
||||||
|
|
||||||
ConfigurationState.Instance.System.AudioBackend.Value = AudioBackend.SoundIo;
|
ConfigurationState.Instance.System.AudioBackend.Value = AudioBackend.SoundIo;
|
||||||
SaveConfig();
|
SaveConfig();
|
||||||
|
|
||||||
deviceDriver = new SoundIoHardwareDeviceDriver();
|
deviceDriver = new SoundIoHardwareDeviceDriver();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue