mirror of
https://github.com/esuo1198/TaikoArcadeLoader.git
synced 2026-10-11 16:48:24 +03:00
Update qr.cpp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user