lcu

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsProcessNotFoundError

func IsProcessNotFoundError(err error) bool

IsProcessNotFoundError checks if the specified error is occurred because the LeagueClient process could not be found.

Types

type ConnectInfo

type ConnectInfo struct {
	// Indicates the port of the LCU
	Port string
	// Indicates the authentication token of the LCU
	AuthToken string
}

ConnectInfo represents information to connect to the lcu. Please keep in mind that these information can change when the LCU is restarted or closed.

func FindLCUConnectInfo

func FindLCUConnectInfo() (*ConnectInfo, error)

FindLCUConnectInfo searches over all processes to find the LeagueClient process (LeagueClientUx.exe) Then it checks the full commandline of the process to find the program arguments for the port and the auth-token

If the process could not be found a dedicated error is thrown. You can check this error with the function IsProcessNotFoundError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL