Update qr.cpp

This commit is contained in:
ptmaster
2024-03-27 22:28:05 +08:00
committed by GitHub
parent 3052df3fcb
commit 9c12c6832f
+6
View File
@@ -20,6 +20,7 @@ extern char accessCode1[21];
extern char accessCode2[21];
extern std::vector<HMODULE> plugins;
typedef void event ();
typedef bool CheckQrEvent();
typedef std::vector<BYTE> GetQrEvent();
@@ -181,6 +182,11 @@ HOOK_DYNAMIC (i64, __fastcall, copy_data, i64, void *dest, int length) {
return 0;
}
}
} else {
for (auto plugin : plugins) {
FARPROC usingQrEvent = GetProcAddress (plugin, "usingQr");
if (usingQrEvent) ((event*) usingQrEvent) ();
}
}
return 0;
}