Update qr.cpp
This commit is contained in:
parent
3052df3fcb
commit
9c12c6832f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user