mirror of
https://github.com/GreemDev/Ryujinx
synced 2025-01-18 08:42:19 +01:00
UI: Change backend text based on used Window type rather than configured value
This commit is contained in:
parent
89f3c8235c
commit
bff884a89c
2 changed files with 11 additions and 2 deletions
|
@ -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",
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue