Documentation
¶
Index ¶
- Constants
- func Contains(clientDirectory, resource string) bool
- func FindRecentProtonVersion(dir string) (string, error)
- func RemoveResource(clientDirectory string, path string) error
- func WriteResource(clientDirectory string, resource Resource) error
- type Cache
- type Client
- type Resource
- type Resources
Constants ¶
View Source
const ( CREATE_REPLACED_RESOURCES = "CREATE TABLE IF NOT EXISTS replaced_resources (path TEXT UNIQUE, mod_time BIGINT, data BLOB)" INSERT_REPLACED_RESOURCE = "INSERT INTO replaced_resources VALUES (?, ?, ?)" QUERY_ALL_REPLACED_RESOURCES = "SELECT * FROM replaced_resources" QUERY_REPLACED_RESOURCE = "SELECT * FROM replaced_resources WHERE path = ?" CREATE_ADDED_RESOURCES = "CREATE TABLE IF NOT EXISTS added_resources (path TEXT UNIQUE PRIMARY KEY)" INSERT_ADDED_RESOURCE = "INSERT INTO added_resources VALUES (?)" QUERY_ALL_ADDED_RESOURCES = "SELECT * FROM added_resources" QUERY_ADDED_RESOURCE = "SELECT * FROM added_resources WHERE path = ?" )
View Source
const (
SteamHome = ".steam/steam/"
)
Variables ¶
This section is empty.
Functions ¶
func FindRecentProtonVersion ¶ added in v0.2.0
func RemoveResource ¶
func WriteResource ¶
Types ¶
type Client ¶
type Client interface { Path() string SetPath(path string) error IsValid() bool Start() (*exec.Cmd, error) MeetsPrerequisites() bool }
func NewStandardClient ¶
func NewStandardClient() Client
type Resource ¶
func ReadResource ¶
Click to show internal directories.
Click to hide internal directories.