mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-01 10:04:12 +08:00
Update external_lossless.py
This commit is contained in:
parent
4a09a23a7f
commit
7169e7e5bf
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user