aboutsummaryrefslogtreecommitdiff
path: root/steam/steam.go
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2017-01-06 18:06:34 -0500
committerMitch Riedstra <mitch@riedstra.us>2017-01-06 18:06:34 -0500
commitdaa78703abcd467936fb498a1ca4deb85a2fe419 (patch)
tree3105a06622c45413d93b92cf3ff83fd02f204b09 /steam/steam.go
parentc5d68db9fb5f831106ce3eb12048e8f9005e531b (diff)
downloadsteam-export-daa78703abcd467936fb498a1ca4deb85a2fe419.tar.gz
steam-export-daa78703abcd467936fb498a1ca4deb85a2fe419.tar.xz
Added an archive library and ability to package steam games
Diffstat (limited to 'steam/steam.go')
-rw-r--r--steam/steam.go4
1 files changed, 3 insertions, 1 deletions
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
}