mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-03-15 02:34:48 +00:00
misc: chore: remove old title ID constructor for RendererHost
This commit is contained in:
parent
c3af1dbf1a
commit
69d79322bb
1 changed files with 0 additions and 28 deletions
|
@ -2,9 +2,7 @@
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Avalonia.Media;
|
using Avalonia.Media;
|
||||||
using Ryujinx.Ava.Utilities.Configuration;
|
using Ryujinx.Ava.Utilities.Configuration;
|
||||||
using Ryujinx.Common;
|
|
||||||
using Ryujinx.Common.Configuration;
|
using Ryujinx.Common.Configuration;
|
||||||
using Ryujinx.Common.Logging;
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Ryujinx.Ava.UI.Renderer
|
namespace Ryujinx.Ava.UI.Renderer
|
||||||
|
@ -38,32 +36,6 @@ namespace Ryujinx.Ava.UI.Renderer
|
||||||
EmbeddedWindowOpenGL => GraphicsBackend.OpenGl,
|
EmbeddedWindowOpenGL => GraphicsBackend.OpenGl,
|
||||||
_ => throw new NotImplementedException()
|
_ => throw new NotImplementedException()
|
||||||
};
|
};
|
||||||
|
|
||||||
public RendererHost(string titleId)
|
|
||||||
{
|
|
||||||
Focusable = true;
|
|
||||||
FlowDirection = FlowDirection.LeftToRight;
|
|
||||||
|
|
||||||
EmbeddedWindow =
|
|
||||||
#pragma warning disable CS8524
|
|
||||||
ConfigurationState.Instance.Graphics.GraphicsBackend.Value switch
|
|
||||||
#pragma warning restore CS8524
|
|
||||||
{
|
|
||||||
GraphicsBackend.OpenGl => new EmbeddedWindowOpenGL(),
|
|
||||||
GraphicsBackend.Vulkan => new EmbeddedWindowVulkan(),
|
|
||||||
};
|
|
||||||
|
|
||||||
string backendText = EmbeddedWindow switch
|
|
||||||
{
|
|
||||||
EmbeddedWindowVulkan => "Vulkan",
|
|
||||||
EmbeddedWindowOpenGL => "OpenGL",
|
|
||||||
_ => throw new NotImplementedException()
|
|
||||||
};
|
|
||||||
|
|
||||||
Logger.Info?.PrintMsg(LogClass.Gpu, $"Backend ({ConfigurationState.Instance.Graphics.GraphicsBackend.Value}): {backendText}");
|
|
||||||
|
|
||||||
Initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private void Initialize()
|
private void Initialize()
|
||||||
|
|
Loading…
Add table
Reference in a new issue