Make it a switch

This commit is contained in:
Isaac Marovitz 2024-04-06 14:41:45 -04:00
parent ab5a60182c
commit b26cf63ff9
No known key found for this signature in database
GPG key ID: 97250B2B09A132E1

View file

@ -969,7 +969,12 @@ namespace Ryujinx.Ava
public void InitStatus()
{
StatusInitEvent?.Invoke(this, new StatusInitEventArgs(
ConfigurationState.Instance.Graphics.GraphicsBackend.Value == GraphicsBackend.Vulkan ? "Vulkan" : "OpenGL",
ConfigurationState.Instance.Graphics.GraphicsBackend.Value switch
{
GraphicsBackend.Vulkan => "Vulkan",
GraphicsBackend.OpenGl => "OpenGL",
_ => throw new NotImplementedException()
},
$"GPU: {_renderer.GetHardwareInfo().GpuDriver}"));
}