aboutsummaryrefslogtreecommitdiff
path: root/steam
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2017-01-16 16:20:43 -0500
committerMitch Riedstra <mitch@riedstra.us>2017-01-16 16:20:43 -0500
commit147880a848dd31a3265ffc60a16eccd4ee9d6713 (patch)
treea0b82126a4004805b8b95f5118656f9ddc2b4d25 /steam
parent719ab6c074c1104a2a8e165486dbbd236ca49e11 (diff)
downloadsteam-export-147880a848dd31a3265ffc60a16eccd4ee9d6713.tar.gz
steam-export-147880a848dd31a3265ffc60a16eccd4ee9d6713.tar.xz
Change default path depending on platform
Diffstat (limited to 'steam')
-rw-r--r--steam/unix.go10
-rw-r--r--steam/windows.go3
2 files changed, 13 insertions, 0 deletions
diff --git a/steam/unix.go b/steam/unix.go
new file mode 100644
index 0000000..caa4b43
--- /dev/null
+++ b/steam/unix.go
@@ -0,0 +1,10 @@
+// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
+
+package steam
+
+import (
+ "os"
+ "path/filepath"
+)
+
+var DefaultLib string = filepath.Join(os.Getenv("HOME"), ".steam/steam/steamapps")
diff --git a/steam/windows.go b/steam/windows.go
new file mode 100644
index 0000000..215d1d7
--- /dev/null
+++ b/steam/windows.go
@@ -0,0 +1,3 @@
+package steam
+
+var DefaultLib string = `C:\Program Files (x86)\Steam\steamapps`