mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-20 04:50:44 +08:00
Revert "created new instance of arch in plugin #4313"
This reverts commit 8e4f758cb1.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include <Windows.h>
|
||||
#include <iostream>
|
||||
|
||||
typedef void (*initFunc)(void*);
|
||||
typedef void (*initFunc)(void*, void*);
|
||||
typedef int (*initEventFunc)(void (*sendEvent)(const char*, void*));
|
||||
typedef void* (*invokeFunc)(const char*, void**);
|
||||
typedef void (*cleanupFunc)();
|
||||
@@ -90,7 +90,7 @@ ArchPluginWindows::unload()
|
||||
}
|
||||
|
||||
void
|
||||
ArchPluginWindows::init(void* log)
|
||||
ArchPluginWindows::init(void* log, void* arch)
|
||||
{
|
||||
PluginTable::iterator it;
|
||||
HINSTANCE lib;
|
||||
@@ -98,7 +98,7 @@ ArchPluginWindows::init(void* log)
|
||||
lib = reinterpret_cast<HINSTANCE>(it->second);
|
||||
initFunc initPlugin = (initFunc)GetProcAddress(lib, "init");
|
||||
if (initPlugin != NULL) {
|
||||
initPlugin(log);
|
||||
initPlugin(log, arch);
|
||||
}
|
||||
else {
|
||||
LOG((CLOG_DEBUG "no init function in %s", it->first.c_str()));
|
||||
|
||||
Reference in New Issue
Block a user