mirror of
https://github.com/HIllya51/LunaHook.git
synced 2024-12-24 04:04:14 +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){
|
||||
std::lock_guard _(settextmutex);
|
||||
std::wstring lfoutput=output;
|
||||
if(!plugins->dispatch(thread,output))return false;
|
||||
strReplace(lfoutput,L"\n",L"\r\n");
|
||||
savetext.at(thread.handle).push_back(lfoutput);
|
||||
strReplace(output,L"\n",L"\r\n");
|
||||
savetext.at(thread.handle).push_back(output);
|
||||
if(currentselect==thread.handle){
|
||||
g_showtexts->scrolltoend();
|
||||
g_showtexts->appendtext(lfoutput);
|
||||
g_showtexts->appendtext(output);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user