diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2017-02-06 09:06:37 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2017-02-06 09:06:37 -0500 |
| commit | 0dc6e92cd018aa0ecea5349a14599279e1a2a574 (patch) | |
| tree | 81e071239c7a0c5bd9e7d1edbcf25bd9913f656e /lib/steam/package.go | |
| parent | c7ab6d7782486fda6d6327ba8306e474daef677a (diff) | |
| download | steam-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/package.go')
| -rw-r--r-- | lib/steam/package.go | 9 |
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 } |
