You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def main():
print("Waiting for program...")
# Iterate over all running process
while True:
for proc in psutil.process_iter():
try:
if proc.name() == "StarRail.exe":
print("Found")
print(proc.name(), proc.pid)
inject(proc.pid, "d3d11.dll")
return
except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):
pass
if name == "main":
main()
The text was updated successfully, but these errors were encountered:
import psutil
from pyinjector import inject
def main():
print("Waiting for program...")
# Iterate over all running process
while True:
for proc in psutil.process_iter():
try:
if proc.name() == "StarRail.exe":
print("Found")
print(proc.name(), proc.pid)
inject(proc.pid, "d3d11.dll")
return
except (psutil.NoSuchProcess, psutil.AccessDenied, psutil.ZombieProcess):
pass
if name == "main":
main()
The text was updated successfully, but these errors were encountered: