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

Support modding dual UWP/XInput applications #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

CAD97
Copy link

@CAD97 CAD97 commented Nov 21, 2024

If a process can use either the XInput or UWP mod, enter it into the process list twice, once for each mod kind, instead of only listing the UWP mod as an option.

If a process can use either the XInput or UWP mod, enter it into the process list twice, once for each mod kind, instead of only listing the UWP mod as an option.
@CAD97
Copy link
Author

CAD97 commented Nov 21, 2024

Example resulting process list:
image

I don't know exactly why, but modded Celeste specifically shows up as UWP whereas base Celeste is XInput. Only injecting the XInput mod actually functions to capture the rumble commands.

Copy link
Author

@CAD97 CAD97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently I can't write C# without an IDE to yell at me

IntifaceGameHapticsRouter/ModControl.xaml.cs Outdated Show resolved Hide resolved
IntifaceGameHapticsRouter/ModControl.xaml.cs Outdated Show resolved Hide resolved
IntifaceGameHapticsRouter/ModControl.xaml.cs Outdated Show resolved Hide resolved
IntifaceGameHapticsRouter/ModControl.xaml.cs Outdated Show resolved Hide resolved
IntifaceGameHapticsRouter/ModControl.xaml.cs Outdated Show resolved Hide resolved
IntifaceGameHapticsRouter/ModControl.xaml.cs Show resolved Hide resolved
@qdot
Copy link
Contributor

qdot commented Nov 21, 2024

It's that our process finding code is really dumb, and modded Celeste probably has something injected that brings in UWP somewhere, even though the main game doesn't bind to it.

What we should do is have our injected code handle both XInput and UWP hooking at the same time, mainly because I'm also going to yank our process enumeration w/ library info since that's what triggers antivirus software. That said, I've been saying I've been going to do that for years and here we are, so I'll take this for now at least.

@CAD97
Copy link
Author

CAD97 commented Nov 24, 2024

so I'll take this for now at least.

Does that mean this PR is good to merge (once you find the time to do so)? I've fixed the silly issues and the PR as it stands is what I used to take the example screenshot.

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

Successfully merging this pull request may close these issues.

2 participants