From daa78703abcd467936fb498a1ca4deb85a2fe419 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Fri, 6 Jan 2017 18:06:34 -0500 Subject: Added an archive library and ability to package steam games --- steam/steam.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'steam/steam.go') diff --git a/steam/steam.go b/steam/steam.go index 1f764f2..5214cc1 100644 --- a/steam/steam.go +++ b/steam/steam.go @@ -20,6 +20,8 @@ type Library struct { Games []string } +var common string = "/common" + func ProcessMultipleLibraries(r []string) ([]*Library, error) { var libs []*Library for _, i := range r { @@ -36,7 +38,7 @@ func ProcessMultipleLibraries(r []string) ([]*Library, error) { // Populate the "Folder" and "Games" fields based on the provided directory func (s *Library) ProcessLibrary(r string) error { if hasCommon(r) { - dirs, err := ioutil.ReadDir(r + "/common") + dirs, err := ioutil.ReadDir(r + common) if err != nil { return err } -- cgit v1.2.3