junlarsen / league-connect

:electric_plug: Node.js HTTP/1.1, HTTP/2.0 and WebSocket interface to the League of Legends Client APIs
https://www.npmjs.com/package/league-connect
MIT License
156 stars 24 forks source link

feat: adds option to pass a getProcessCommandLine function #125

Open jlcarvalho opened 3 months ago

jlcarvalho commented 3 months ago

In some cases it may be necessary to use a custom function to retrieve League's command line string, since the current methods (Get-CimInstance and wmic) rely on WMI, which may be unavailable (or broken) on some Windows machines.

This PR implements @junlarsen's suggestion from the discussion in https://github.com/junlarsen/league-connect/discussions/124.