mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-18 15:27:19 +00:00
Merge pull request #645 from winterhell/develop
Prevent crash when XInput is not present
This commit is contained in:
commit
d9f8120f0d
|
@ -381,7 +381,8 @@ namespace OpenTK.Platform.Windows
|
||||||
}
|
}
|
||||||
if (dll == IntPtr.Zero)
|
if (dll == IntPtr.Zero)
|
||||||
{
|
{
|
||||||
throw new NotSupportedException("XInput was not found on this platform");
|
Debug.Print("XInput was not found on this platform");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load the entry points we are interested in from that dll
|
// Load the entry points we are interested in from that dll
|
||||||
|
|
Loading…
Reference in a new issue