mirror of
https://github.com/HIllya51/LunaHook.git
synced 2025-01-12 12:59:31 +08:00
Update pluginmanager.cpp
This commit is contained in:
parent
8e65356e07
commit
cda7fbaf53
@ -66,7 +66,6 @@ Pluginmanager::Pluginmanager(LunaHost* _host):host(_host){
|
||||
try {
|
||||
std::scoped_lock lock(OnNewSentenceSLock);
|
||||
|
||||
OnNewSentenceS[L"InternalClipBoard"]=GetProcAddress(GetModuleHandle(0),"OnNewSentence");//内部链接的剪贴板插件
|
||||
std::vector<std::wstring>collectQtplugs;
|
||||
for (auto i=0;i<host->configs->pluginsnum();i++) {
|
||||
auto plg=host->configs->pluginsget(i);
|
||||
@ -82,6 +81,9 @@ Pluginmanager::Pluginmanager(LunaHost* _host):host(_host){
|
||||
}
|
||||
loadqtdlls(collectQtplugs);
|
||||
|
||||
OnNewSentenceS[L"InternalClipBoard"]=GetProcAddress(GetModuleHandle(0),"OnNewSentence");//内部链接的剪贴板插件
|
||||
|
||||
|
||||
} catch (const std::exception& ex) {
|
||||
std::cerr << "Error: " << ex.what() << std::endl;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user