From 147880a848dd31a3265ffc60a16eccd4ee9d6713 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 16 Jan 2017 16:20:43 -0500 Subject: Change default path depending on platform --- steam/unix.go | 10 ++++++++++ steam/windows.go | 3 +++ 2 files changed, 13 insertions(+) create mode 100644 steam/unix.go create mode 100644 steam/windows.go (limited to 'steam') 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` -- cgit v1.2.3