diff --git a/GUI/extensions.cpp b/GUI/extensions.cpp index 1ae9016..2cb2464 100644 --- a/GUI/extensions.cpp +++ b/GUI/extensions.cpp @@ -5,7 +5,6 @@ std::shared_mutex extenMutex; std::map extensions; -int processing; std::map LoadExtensions() { diff --git a/host/host.cc b/host/host.cc index a196d89..7807c9d 100644 --- a/host/host.cc +++ b/host/host.cc @@ -30,7 +30,7 @@ namespace Host DLLEXPORT void Start(ProcessEventCallback onAttach, ProcessEventCallback onDetach, ThreadEventCallback onCreate, ThreadEventCallback onRemove) { - std::tie(OnAttach, OnDetach, OnCreate, OnRemove) = { onAttach, onDetach, onCreate, onRemove }; + OnAttach = onAttach; OnDetach = onDetach; OnCreate = onCreate; OnRemove = onRemove; OnCreate(textThreadsByParams[{ 0, -1UL, -1UL, -1UL }] = new TextThread({ 0, -1UL, -1UL, -1UL }, USING_UNICODE)); CreateNewPipe(); } @@ -143,11 +143,6 @@ namespace Host HOST_LOCK; textThreadsByParams[{ 0, -1UL, -1UL, -1UL }]->AddSentence(std::wstring(text)); } - - DLLEXPORT void RegisterThreadCreateCallback(ThreadEventCallback cf) { OnCreate = cf; } - DLLEXPORT void RegisterThreadRemoveCallback(ThreadEventCallback cf) { OnRemove = cf; } - DLLEXPORT void RegisterProcessAttachCallback(ProcessEventCallback cf) { OnAttach = cf; } - DLLEXPORT void RegisterProcessDetachCallback(ProcessEventCallback cf) { OnDetach = cf; } } void DispatchText(ThreadParameter tp, const BYTE* text, int len) diff --git a/host/host.h b/host/host.h index f10dfa6..41f534a 100644 --- a/host/host.h +++ b/host/host.h @@ -47,11 +47,6 @@ namespace Host DLLEXPORT TextThread* GetThread(ThreadParameter tp); DLLEXPORT void AddConsoleOutput(std::wstring text); - - DLLEXPORT void RegisterThreadCreateCallback(ThreadEventCallback cf); - DLLEXPORT void RegisterThreadRemoveCallback(ThreadEventCallback cf); - DLLEXPORT void RegisterProcessAttachCallback(ProcessEventCallback cf); - DLLEXPORT void RegisterProcessDetachCallback(ProcessEventCallback cf); } void DispatchText(ThreadParameter tp, const BYTE *text, int len);