Resolve elses.

This commit is contained in:
VocalFan 2021-08-22 02:29:58 -04:00 committed by GitHub
parent a390b7515f
commit 9aec3e9e77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -425,7 +425,6 @@ namespace Ryujinx.Ui
else
{
Logger.Warning?.Print(LogClass.Audio, "OpenAL is not supported, trying to fall back to SoundIO.");
}
if (SoundIoHardwareDeviceDriver.IsSupported)
{
@ -436,6 +435,7 @@ namespace Ryujinx.Ui
deviceDriver = new SoundIoHardwareDeviceDriver();
}
}
else
{
Logger.Warning?.Print(LogClass.Audio, "SoundIO is not supported, falling back to dummy audio out.");
@ -464,7 +464,6 @@ namespace Ryujinx.Ui
else
{
Logger.Warning?.Print(LogClass.Audio, "SDL2 is not supported, trying to fall back to OpenAL.");
}
if (OpenALHardwareDeviceDriver.IsSupported)
{
@ -475,6 +474,7 @@ namespace Ryujinx.Ui
deviceDriver = new OpenALHardwareDeviceDriver();
}
}
else
{
Logger.Warning?.Print(LogClass.Audio, "OpenAL is not supported, falling back to dummy audio out.");
@ -503,8 +503,6 @@ namespace Ryujinx.Ui
else
{
Logger.Warning?.Print(LogClass.Audio, "SDL2 is not supported, trying to fall back to SoundIO.");
}
if (SoundIoHardwareDeviceDriver.IsSupported)
{
Logger.Warning?.Print(LogClass.Audio, "Found SoundIO, changing configuration.");
@ -514,6 +512,7 @@ namespace Ryujinx.Ui
deviceDriver = new SoundIoHardwareDeviceDriver();
}
}
else
{
Logger.Warning?.Print(LogClass.Audio, "SoundIO is not supported, falling back to dummy audio out.");