UI: Change backend text based on used Window type rather than configured value

This commit is contained in:
Evan Husted 2024-12-24 00:18:47 -06:00
parent 89f3c8235c
commit bff884a89c
2 changed files with 11 additions and 2 deletions

View file

@ -1142,7 +1142,7 @@ namespace Ryujinx.Ava
public void InitStatus()
{
_viewModel.BackendText = ConfigurationState.Instance.Graphics.GraphicsBackend.Value switch
_viewModel.BackendText = RendererHost.Backend switch
{
GraphicsBackend.Vulkan => "Vulkan",
GraphicsBackend.OpenGl => "OpenGL",

View file

@ -38,7 +38,16 @@ namespace Ryujinx.Ava.UI.Renderer
"01005CA01580E000", // Persona 5
"010028600EBDA000", // Mario 3D World
];
public GraphicsBackend Backend =>
EmbeddedWindow switch
{
EmbeddedWindowVulkan => GraphicsBackend.Vulkan,
EmbeddedWindowOpenGL => GraphicsBackend.OpenGl,
EmbeddedWindowMetal => GraphicsBackend.Metal,
_ => throw new NotImplementedException()
};
public RendererHost(string titleId)
{
InitializeComponent();