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() public void InitStatus()
{ {
_viewModel.BackendText = ConfigurationState.Instance.Graphics.GraphicsBackend.Value switch _viewModel.BackendText = RendererHost.Backend switch
{ {
GraphicsBackend.Vulkan => "Vulkan", GraphicsBackend.Vulkan => "Vulkan",
GraphicsBackend.OpenGl => "OpenGL", GraphicsBackend.OpenGl => "OpenGL",

View file

@ -39,6 +39,15 @@ namespace Ryujinx.Ava.UI.Renderer
"010028600EBDA000", // Mario 3D World "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) public RendererHost(string titleId)
{ {
InitializeComponent(); InitializeComponent();