예제 #1
0
파일: client.go 프로젝트: mever/steam
// 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)
}
예제 #2
0
파일: client.go 프로젝트: mever/steam
func (c *Client) getAppDir(id steam.AppId) string {
	return c.AppsDir + "/" + id.Id()
}