mirror of
https://github.com/HIllya51/LunaHook.git
synced 2025-01-13 05:13:58 +08:00
oh..
This commit is contained in:
parent
858b750f28
commit
0349a4a28e
@ -475,7 +475,6 @@ void HooksearchText::call(std::set<DWORD>pids){
|
||||
SearchParam sp = {};
|
||||
sp.codepage=cp;
|
||||
wcsncpy_s(sp.text, edittext->text().c_str(), PATTERN_SIZE - 1);
|
||||
wprintf(sp.text);
|
||||
for(auto pid:pids)
|
||||
Host::FindHooks(pid, sp);
|
||||
};
|
||||
|
@ -129,7 +129,7 @@ void Pluginmanager::loadqtdlls(std::vector<std::wstring>&collectQtplugs){
|
||||
SetEnvironmentVariableW(L"PATH",envs.c_str());
|
||||
|
||||
HMODULE* modules;
|
||||
if(std::true_type::value){
|
||||
if(std::false_type::value){
|
||||
auto vmodules=QtLoadLibrarys(collectQtplugs);
|
||||
if(vmodules.empty())return;
|
||||
modules=vmodules.data();
|
||||
@ -151,7 +151,6 @@ void Pluginmanager::loadqtdlls(std::vector<std::wstring>&collectQtplugs){
|
||||
|
||||
}
|
||||
for(int i=0;i<collectQtplugs.size();i++){
|
||||
wprintf(L"%s %p %p",collectQtplugs[i].c_str(),modules[i],GetProcAddress(modules[i],"OnNewSentence"));
|
||||
OnNewSentenceS[collectQtplugs[i]]=GetProcAddress(modules[i],"OnNewSentence");
|
||||
}
|
||||
}
|
||||
@ -198,7 +197,6 @@ bool Pluginmanager::dispatch(TextThread& thread, std::wstring& sentence){
|
||||
|
||||
auto funptr=OnNewSentenceS[path];
|
||||
if(funptr==0)continue;
|
||||
wprintf(L"%s %p\n",path.c_str(), funptr);
|
||||
if (!*(sentenceBuffer = ((OnNewSentence_t)funptr)(sentenceBuffer, sentenceInfo)))
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user