dolphin-memory-engine
dolphin-memory-engine copied to clipboard
Doesn't work with renamed executables
Dolphin Memory Engine will not hook to Dolphin if the Dolphin executable is renamed. I maintain several Dolphin versions in the same folder and rename them to the version they are and if they are not explicitly named "dolphin.exe", then this tool won't hook to it.
Yeah, it uses the name to tell that it is dolphin. Honestly, I am not sure if it's possible to detect the dolphin process other than its name, it seems to be the only distinguishing feature of them in the process list (or maybe I am missing something). The same would go on linux because I look up the command line which has the name of the elf so if you were to rename it, it would still treat it differently.
For now, can you use different dolphin's folders? because I am not sure if it can be fixed reliably.
What if, can there be a setting somewhere where the custom executable name can be specified so that it allows it to hook to it? Otherwise, I could just keep a default name version just to use with this.
It could work, whenever I come back to this (because this project does need more love tbh), I'll check on it!
Proposal:
- A default list of names in the
settings.ini
or possibly a newtargets.ini
file. ** Contain the known common dolphin process names (nogui, wx, qt, etc...) - Allow for any process name to be added in this list.
- There will not be a GUI element for this (unless requested).
Passing the alternative process name as an argument to DME could be another solution (e.g. --dolphin-name
).
Examples:
-
dolphin-memory-engine
looks fordolphin-emu
-
dolphin-memory-engine --dolphin-name dolphin_backup.exe
Then it would be easy to launch two DME that track different Dolphin instances.
Passing the alternative process name as an argument to DME could be another solution (e.g.
--dolphin-name
).Examples:
* `dolphin-memory-engine` looks for `dolphin-emu` * `dolphin-memory-engine --dolphin-name dolphin_backup.exe`
Then it would be easy to launch two DME that track different Dolphin instances.
I'd be fine with that too.
I'll look into this later today.