pub fn get_running_client(
force_lock_file: bool,
) -> Result<(String, String), Error>
Expand description
Gets the port and auth for the client via the process id This is done to avoid needing to find the lock file, but a fallback could be implemented in theory using the fact that you can get the exe location, and go backwards.
ยงErrors
This will return an error if the LCU is truly not running, or the lock file is inaccessibly for some reason. If it returns an error for any other reason, this code likely needs the client and game process names updated.