mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-24 20:24:13 +08:00
Update LunaHost.cpp
This commit is contained in:
parent
38a93c2ca7
commit
49742b9ca7
@ -138,13 +138,12 @@ LunaHost::LunaHost(){
|
|||||||
|
|
||||||
bool LunaHost::on_text_recv(TextThread& thread, std::wstring& output){
|
bool LunaHost::on_text_recv(TextThread& thread, std::wstring& output){
|
||||||
std::lock_guard _(settextmutex);
|
std::lock_guard _(settextmutex);
|
||||||
std::wstring lfoutput=output;
|
|
||||||
if(!plugins->dispatch(thread,output))return false;
|
if(!plugins->dispatch(thread,output))return false;
|
||||||
strReplace(lfoutput,L"\n",L"\r\n");
|
strReplace(output,L"\n",L"\r\n");
|
||||||
savetext.at(thread.handle).push_back(lfoutput);
|
savetext.at(thread.handle).push_back(output);
|
||||||
if(currentselect==thread.handle){
|
if(currentselect==thread.handle){
|
||||||
g_showtexts->scrolltoend();
|
g_showtexts->scrolltoend();
|
||||||
g_showtexts->appendtext(lfoutput);
|
g_showtexts->appendtext(output);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user