applied Thog's patch to fix issue on linux

This commit is contained in:
Xpl0itR 2019-08-08 17:56:14 +01:00
parent 85b695f247
commit 97c4ad8850
No known key found for this signature in database
GPG key ID: 91798184109676AD
2 changed files with 6 additions and 1 deletions

View file

@ -289,7 +289,10 @@ namespace Ryujinx
device.System.UseLegacyJit = SwitchConfig.EnableLegacyJit;
ServiceConfiguration.IgnoreMissingServices = SwitchConfig.IgnoreMissingServices;
}
public static void ConfigureHid(Switch device, Configuration SwitchConfig)
{
if (SwitchConfig.JoystickControls.Enabled)
{
if (!Joystick.GetState(SwitchConfig.JoystickControls.Index).IsConnected)

View file

@ -310,6 +310,8 @@ namespace Ryujinx.UI
private static void CreateGameWindow()
{
Configuration.ConfigureHid(_device, SwitchSettings.SwitchConfig);
using (GlScreen screen = new GlScreen(_device, _renderer))
{
screen.MainLoop();