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.
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.