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