Skip to content

Commit 5524ddc

Browse files
author
Quaxdrone
authored
Fixed Bytes Encoding (#3)
I'm forgot to write what encoding is... I'm Sorry :D
1 parent 93c1b2d commit 5524ddc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

DearPyInjectorRustClient/Inject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
class Injector:
66
def InjectDLL(path: str):
77
pymem_rust = p.Pymem("RustClient.exe")
8-
vbb = bytes(path)
8+
vbb = bytes(path, "utf-8")
99
return inject_dll(pymem_rust.process_handle, vbb)
1010
def GetValue_Tag(tag: str):
1111
return x.get_value(tag)
1212
def CheckIfRustExists():
1313
pymnx = p.Pymem("RustClient.exe")
1414
if pymnx.process_id == 0:
15-
raise Exception("RustClient.exe is not Launched")
15+
raise Exception("RustClient.exe is not Launched")

0 commit comments

Comments
 (0)