Exemple #1
0
// InstallApp installs the app indicated by the provided Steam app id. When
// during the installation process steam has questions for you it will
// call the interviewer with a question.
func (c *Client) InstallApp(id steam.AppId, i Interviewer) (err error) {
	c.completeConfig()

	_, err = os.Stat(c.SccDir)
	if os.IsNotExist(err) {
		err = c.installClient()
	}

	return c.installOrUpdateApp(id.Id(), c.getAppDir(id), i)
}
Exemple #2
0
func (c *Client) getAppDir(id steam.AppId) string {
	return c.AppsDir + "/" + id.Id()
}