aboutsummaryrefslogtreecommitdiff
path: root/lib/steam
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2017-02-06 09:06:37 -0500
committerMitch Riedstra <mitch@riedstra.us>2017-02-06 09:06:37 -0500
commit0dc6e92cd018aa0ecea5349a14599279e1a2a574 (patch)
tree81e071239c7a0c5bd9e7d1edbcf25bd9913f656e /lib/steam
parentc7ab6d7782486fda6d6327ba8306e474daef677a (diff)
downloadsteam-export-0dc6e92cd018aa0ecea5349a14599279e1a2a574.tar.gz
steam-export-0dc6e92cd018aa0ecea5349a14599279e1a2a574.tar.xz
Simplified the Archive library. Added a way to pull the config from the web applicationold_dev
Diffstat (limited to 'lib/steam')
-rw-r--r--lib/steam/package.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/steam/package.go b/lib/steam/package.go
index 2e25994..7a0c6a5 100644
--- a/lib/steam/package.go
+++ b/lib/steam/package.go
@@ -26,8 +26,7 @@ func (l *Library) PackageGameToFile(index int, file, compress string) error {
return err
}
input := []string{"common/" + g, acf}
- a := archive.Archive{Output: output, Input: input}
- err = a.Tar(compress)
+ err = archive.TarToFile(output, input, "gz")
if err != nil {
return err
}
@@ -51,10 +50,8 @@ func (l *Library) ExtractGameFromFile(f, compress string) error {
if err = os.Chdir(l.Folder); err != nil {
return err
}
- u := &archive.Unarchive{
- Input: f,
- }
- if err := u.UnTar(compress); err != nil {
+
+ if err := archive.UnTarFromFile(f, compress); err != nil {
return err
}