From 3d1a0bf3749afa14da5b5ba1e0666fdb78c99beb Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Thu, 29 Dec 2022 15:09:18 +0100 Subject: [PATCH] [Headless] Fix for not receiving any SDL events on Linux (#4182) * headless: Fix SDL events not working * Add nuget.config --- .gitignore | 3 +++ Ryujinx.Headless.SDL2/Program.cs | 4 ++-- nuget.config | 7 +++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 nuget.config diff --git a/.gitignore b/.gitignore index 9432a953a4..c24f90e342 100644 --- a/.gitignore +++ b/.gitignore @@ -125,6 +125,9 @@ ClientBin/ packages/* *.config +# Include nuget.config +!nuget.config + # RIA/Silverlight projects Generated_Code/ diff --git a/Ryujinx.Headless.SDL2/Program.cs b/Ryujinx.Headless.SDL2/Program.cs index 9a082b6d02..4a2ba99de6 100644 --- a/Ryujinx.Headless.SDL2/Program.cs +++ b/Ryujinx.Headless.SDL2/Program.cs @@ -77,7 +77,7 @@ namespace Ryujinx.Headless.SDL2 _accountManager = new AccountManager(_libHacHorizonManager.RyujinxClient); _userChannelPersistence = new UserChannelPersistence(); - if (OperatingSystem.IsMacOS()) + if (OperatingSystem.IsMacOS() || OperatingSystem.IsLinux()) { AutoResetEvent invoked = new AutoResetEvent(false); @@ -663,4 +663,4 @@ namespace Ryujinx.Headless.SDL2 return true; } } -} +} \ No newline at end of file diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000000..80f5bd7fcc --- /dev/null +++ b/nuget.config @@ -0,0 +1,7 @@ + + + + + + +