bryanhitc / lcu-sharp

An API wrapper for the League of Legends client.
MIT License
44 stars 10 forks source link

Lock file location can not be read from process when Lol run in Admin mode #25

Open timhaines opened 2 years ago

timhaines commented 2 years ago

Describe the bug If you start LOL via run as administrator, getting the MainModule of the process raises an exception. It turns out Riot has a page telling users to run in administrator mode. Our first beta tester was doing this (on advice of a coach).

If there's another way to reliably get the current folder to read the lockfile from (I tried it hardcoded), then the LCU API works correctly.

Hardcoding the lockfile path isn't a good solution though, as the user may have installed Lol in a different location.

bryanhitc commented 2 years ago

What exception is raised? Does running the app that uses LCU Sharp as admin fix the problem?

I don't maintain this project, but feel free to submit a PR to handle the exception gracefully.