mirror of
https://github.com/debauchee/barrier.git
synced 2025-07-19 09:27:37 +02:00
updated pluging loader for Windows #4313
This commit is contained in:
parent
de8fe7e2a5
commit
1d7eb3f5cb
12 changed files with 180 additions and 48 deletions
|
@ -19,7 +19,6 @@
|
|||
#pragma once
|
||||
|
||||
#include "arch/IArchPlugin.h"
|
||||
#include "base/String.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
@ -35,13 +34,20 @@ public:
|
|||
virtual ~ArchPluginWindows();
|
||||
|
||||
// IArchPlugin overrides
|
||||
void load();
|
||||
void init(void* eventTarget, IEventQueue* events);
|
||||
bool exists(const char* name);
|
||||
void* invoke(const char* pluginName,
|
||||
const char* functionName,
|
||||
void* args);
|
||||
|
||||
private:
|
||||
String getModuleDir();
|
||||
void getFilenames(const String& pattern, std::vector<String>& filenames);
|
||||
void load(const String& dllPath);
|
||||
String getPluginsDir();
|
||||
|
||||
private:
|
||||
PluginTable m_pluginTable;
|
||||
};
|
||||
|
||||
void sendEvent(const char* text, void* data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue