blob: 617be4d62e872dc4fd62e45812c2b661649bdf40 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package main
import (
"fmt"
"git.riedstra.us/mitch/steam-export/config"
"git.riedstra.us/mitch/steam-export/steam"
"os"
)
func main() {
config, err := config.LoadConfig()
if err != nil {
fmt.Println(err)
}
// fmt.Println(config)
libs, err := steam.ProcessMultipleLibraries(config.SteamRepositories)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(libs)
}
fmt.Println("------")
fmt.Println(libs[0].Games[0])
working_dir, _ := os.Getwd()
fmt.Println(working_dir)
// vvvvvvv
// _ = libs[0].PackageGame(libs[0].Games[0])
// Duke Nukem 3d
_ = libs[2].PackageGame(libs[2].Games[8])
}
|