Update external_lossless.py

This commit is contained in:
恍兮惚兮 2024-04-27 23:28:54 +08:00
parent 4a09a23a7f
commit 7169e7e5bf

View File

@ -31,16 +31,17 @@ class Method(scalebase):
time.sleep(1)
if globalconfig["hooklossless"]:
for pid, exe in ListProcess():
for pids, exe in ListProcess():
if exe == pexe.replace("/", "\\"):
if pid in self.injectedpids:
continue
dll = os.path.abspath("./files/plugins/hookmagpie.dll")
injecter = os.path.abspath(
"./files/plugins/shareddllproxy{}.exe".format("64")
)
injectdll(pid, injecter, dll)
self.injectedpids.add(pid)
for pid in pids:
if pid in self.injectedpids:
continue
dll = os.path.abspath("./files/plugins/hookmagpie.dll")
injecter = os.path.abspath(
"./files/plugins/shareddllproxy{}.exe".format("64")
)
injectdll([pid], injecter, dll)
self.injectedpids.add(pid)
break
def changestatus(self, hwnd, full):
@ -74,4 +75,4 @@ class Method(scalebase):
windows.keybd_event(vkcode, 0, windows.KEYEVENTF_KEYUP, 0)
for k in mods:
windows.keybd_event(mp1[k], 0, windows.KEYEVENTF_KEYUP, 0)
return True
return True