From 464c9398ae49d8faae46f81fb7040155408858f7 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Wed, 30 Aug 2023 23:18:38 +0100 Subject: Perform very minor load/unload optimisations Because why not. --- src/rinput.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/rinput.c') 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, -- cgit v1.2.3