diff options
author | Michael Smith <mikesmiffy128@gmail.com> | 2023-08-30 23:18:38 +0100 |
---|---|---|
committer | Michael Smith <mikesmiffy128@gmail.com> | 2023-08-30 23:44:50 +0100 |
commit | 464c9398ae49d8faae46f81fb7040155408858f7 (patch) | |
tree | 3c8f035e752124a7f9f32179fa01d5c56c9d2439 /src/rinput.c | |
parent | 8a1c4de9b33128c10378f1938d8a60c071f01ad0 (diff) |
Perform very minor load/unload optimisations
Because why not.
Diffstat (limited to 'src/rinput.c')
-rw-r--r-- | src/rinput.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rinput.c b/src/rinput.c index 79b6661..6b61bff 100644 --- a/src/rinput.c +++ b/src/rinput.c @@ -29,6 +29,7 @@ #include "hook.h" #include "intdefs.h" #include "mem.h" +#include "sst.h" #include "vcall.h" FEATURE("scalable raw mouse input") @@ -217,6 +218,7 @@ e0: UnregisterClassW(L"RInput", 0); } END { + if (!sst_userunloaded) return; if (orig_SetCursorPos) { // if null, we didn't init our own implementation RAWINPUTDEVICE rd = { .dwFlags = RIDEV_REMOVE, |