aboutsummaryrefslogtreecommitdiff
path: root/steam/steam.go
diff options
context:
space:
mode:
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
}