mirror of
https://github.com/ayufan/steam-deck-tools.git
synced 2025-12-06 07:12:01 +01:00
CommonHelpers: Fail if cannot load inpoutx64.dll
This commit is contained in:
parent
44cdaef37c
commit
a86f2a49e1
|
|
@ -20,6 +20,8 @@ namespace CommonHelpers
|
|||
public InpOut()
|
||||
{
|
||||
libraryHandle = LoadLibrary(LibraryName);
|
||||
if (libraryHandle == IntPtr.Zero)
|
||||
throw new ArgumentException("Failed to load " + LibraryName);
|
||||
try
|
||||
{
|
||||
var addr = GetProcAddress(libraryHandle, "MapPhysToLin");
|
||||
|
|
|
|||
Loading…
Reference in a new issue