Update external_lossless.py

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

View File

@ -31,15 +31,16 @@ class Method(scalebase):
time.sleep(1) time.sleep(1)
if globalconfig["hooklossless"]: if globalconfig["hooklossless"]:
for pid, exe in ListProcess(): for pids, exe in ListProcess():
if exe == pexe.replace("/", "\\"): if exe == pexe.replace("/", "\\"):
for pid in pids:
if pid in self.injectedpids: if pid in self.injectedpids:
continue continue
dll = os.path.abspath("./files/plugins/hookmagpie.dll") dll = os.path.abspath("./files/plugins/hookmagpie.dll")
injecter = os.path.abspath( injecter = os.path.abspath(
"./files/plugins/shareddllproxy{}.exe".format("64") "./files/plugins/shareddllproxy{}.exe".format("64")
) )
injectdll(pid, injecter, dll) injectdll([pid], injecter, dll)
self.injectedpids.add(pid) self.injectedpids.add(pid)
break break