mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-03 17:15:48 +00:00
Prevent crash when XInput is not present
Now returns from the function instead of throwing an exception
This commit is contained in:
parent
96ef07b229
commit
8e5faec07c
|
@ -381,7 +381,8 @@ namespace OpenTK.Platform.Windows
|
|||
}
|
||||
if (dll == IntPtr.Zero)
|
||||
{
|
||||
throw new NotSupportedException("XInput was not found on this platform");
|
||||
//XInput was not found on this platform
|
||||
return;
|
||||
}
|
||||
|
||||
// Load the entry points we are interested in from that dll
|
||||
|
|
Loading…
Reference in a new issue