1
0
mirror of synced 2024-11-28 01:10:55 +01:00

Add call to InitQr

This commit is contained in:
esuo1198 2024-04-25 20:02:41 +09:00
parent e26fb32ff1
commit 5b1d30ea58

View File

@ -21,6 +21,7 @@ extern char accessCode2[21];
extern std::vector<HMODULE> plugins;
typedef void event ();
typedef void initQrEvent (GameVersion gameVersion);
typedef bool checkQrEvent ();
typedef int getQrEvent (int, unsigned char *);
@ -256,6 +257,9 @@ Init () {
}
for (auto plugin : plugins) {
FARPROC initEvent = GetProcAddress (plugin, "InitQr");
if (initEvent) ((initQrEvent *)initEvent) (gameVersion);
FARPROC usingQrEvent = GetProcAddress (plugin, "UsingQr");
if (usingQrEvent) qrPlugins.push_back (plugin);
}