Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3dmigoto cant imprint mods(求助!3dmogoto无法注入mod! #54

Open
meandherreality opened this issue Nov 22, 2024 · 0 comments
Open

Comments

@meandherreality
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant