mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Minor code edits
This commit is contained in:
@@ -454,6 +454,7 @@ typedef HRESULT (__stdcall *DInputCreateProc)(HINSTANCE a,DWORD b,IDirectInputA*
|
||||
HRESULT __stdcall FakeDirectInputCreate(HINSTANCE a, DWORD b, IDirectInputA** c, IUnknown* d) {
|
||||
HMODULE dinput = LoadLibraryA("dinput.dll");
|
||||
if (!dinput || dinput == INVALID_HANDLE_VALUE) return -1;
|
||||
|
||||
DInputCreateProc proc = (DInputCreateProc)GetProcAddress(dinput, "DirectInputCreateA");
|
||||
if (!proc) return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user