This commit is contained in:
恍兮惚兮 2024-10-20 16:28:56 +08:00
parent b976c5ab32
commit c359e86364
3 changed files with 8 additions and 8 deletions

View File

@ -385,7 +385,7 @@ class searchhookparam(LDialog):
class hookselect(closeashidewindow): class hookselect(closeashidewindow):
addnewhooksignal = pyqtSignal(tuple, bool) addnewhooksignal = pyqtSignal(tuple, bool, bool)
getnewsentencesignal = pyqtSignal(str) getnewsentencesignal = pyqtSignal(str)
sysmessagesignal = pyqtSignal(str) sysmessagesignal = pyqtSignal(str)
removehooksignal = pyqtSignal(tuple) removehooksignal = pyqtSignal(tuple)
@ -471,9 +471,8 @@ class hookselect(closeashidewindow):
self.saveifembedable = {} self.saveifembedable = {}
self.embedablenum = 0 self.embedablenum = 0
def addnewhook(self, key, select): def addnewhook(self, key, select, isembedable):
hc, hn, tp = key hc, hn, tp = key
isembedable = hc[0] == "E"
if len(self.save) == 0: if len(self.save) == 0:
self.ttCombomodelmodel.setHorizontalHeaderLabels(self.currentheader) self.ttCombomodelmodel.setHorizontalHeaderLabels(self.currentheader)

View File

@ -91,7 +91,8 @@ class SearchParam(Structure):
findhookcallback_t = CFUNCTYPE(None, c_wchar_p, c_wchar_p) findhookcallback_t = CFUNCTYPE(None, c_wchar_p, c_wchar_p)
ProcessEvent = CFUNCTYPE(None, DWORD) ProcessEvent = CFUNCTYPE(None, DWORD)
ThreadEvent = CFUNCTYPE(None, c_wchar_p, c_char_p, ThreadParam) ThreadEvent = CFUNCTYPE(None, c_wchar_p, c_char_p, ThreadParam, c_bool)
ThreadEvent_2 = CFUNCTYPE(None, c_wchar_p, c_char_p, ThreadParam)
OutputCallback = CFUNCTYPE(c_bool, c_wchar_p, c_char_p, ThreadParam, c_wchar_p) OutputCallback = CFUNCTYPE(c_bool, c_wchar_p, c_char_p, ThreadParam, c_wchar_p)
ConsoleHandler = CFUNCTYPE(None, c_wchar_p) ConsoleHandler = CFUNCTYPE(None, c_wchar_p)
HookInsertHandler = CFUNCTYPE(None, c_uint64, c_wchar_p) HookInsertHandler = CFUNCTYPE(None, c_uint64, c_wchar_p)
@ -231,7 +232,7 @@ class texthook(basetext):
ProcessEvent(self.onprocconnect), ProcessEvent(self.onprocconnect),
ProcessEvent(self.removeproc), ProcessEvent(self.removeproc),
ThreadEvent(self.onnewhook), ThreadEvent(self.onnewhook),
ThreadEvent(self.onremovehook), ThreadEvent_2(self.onremovehook),
OutputCallback(self.handle_output), OutputCallback(self.handle_output),
ConsoleHandler(gobject.baseobject.hookselectdialog.sysmessagesignal.emit), ConsoleHandler(gobject.baseobject.hookselectdialog.sysmessagesignal.emit),
HookInsertHandler(self.newhookinsert), HookInsertHandler(self.newhookinsert),
@ -512,7 +513,7 @@ class texthook(basetext):
name = (hc[:8] == "UserHook" and _hc[:8] == "UserHook") or (hc == _hc) name = (hc[:8] == "UserHook" and _hc[:8] == "UserHook") or (hc == _hc)
return base and name return base and name
def onnewhook(self, hc, hn, tp): def onnewhook(self, hc, hn, tp, isembedable):
key = (hc, hn.decode("utf8"), tp) key = (hc, hn.decode("utf8"), tp)
self.hookdatacollecter[key] = [] self.hookdatacollecter[key] = []
@ -524,7 +525,7 @@ class texthook(basetext):
self.selectinghook = key self.selectinghook = key
select = True select = True
break break
gobject.baseobject.hookselectdialog.addnewhooksignal.emit(key, select) gobject.baseobject.hookselectdialog.addnewhooksignal.emit(key, select, isembedable)
return True return True
def setsettings(self): def setsettings(self):

View File

@ -29,7 +29,7 @@ include(generate_product_version)
set(VERSION_MAJOR 5) set(VERSION_MAJOR 5)
set(VERSION_MINOR 45) set(VERSION_MINOR 45)
set(VERSION_PATCH 0) set(VERSION_PATCH 1)
add_library(pch pch.cpp) add_library(pch pch.cpp)
target_precompile_headers(pch PUBLIC pch.h) target_precompile_headers(pch PUBLIC pch.h)