mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-27 13:44:11 +08:00
24 lines
819 B
C++
24 lines
819 B
C++
#ifndef LUNA_PLUGINMANAGER_H
|
|
#define LUNA_PLUGINMANAGER_H
|
|
#include"Plugin/plugindef.h"
|
|
#include"textthread.h"
|
|
class LunaHost;
|
|
class Pluginmanager{
|
|
std::unordered_map<std::wstring,LPVOID>OnNewSentenceS;
|
|
std::optional<LPVOID> checkisvalidplugin(const std::wstring&);
|
|
concurrency::reader_writer_lock OnNewSentenceSLock;
|
|
bool checkisdump(LPVOID);
|
|
LunaHost* host;
|
|
std::array<InfoForExtension, 20> GetSentenceInfo(TextThread& thread);
|
|
void loadqtdlls(std::vector<std::wstring>&collectQtplugs);
|
|
public:
|
|
std::vector<std::wstring>PluginRank;
|
|
Pluginmanager(LunaHost*);
|
|
bool dispatch(TextThread&, std::wstring& sentence);
|
|
bool addplugin(const std::wstring&);
|
|
void swaprank(int,int);
|
|
void remove(const std::wstring&);
|
|
std::optional<std::wstring>selectpluginfile();
|
|
};
|
|
|
|
#endif |