rebuilt command flag system
This commit is contained in:
13
mods.go
13
mods.go
@@ -8,16 +8,9 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
func findmodlist(modlist string) bool {
|
||||
if !isItReal(modlist) {
|
||||
return false
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
func downloadMods(modlist string) {
|
||||
var c = readCfg("config.yml")
|
||||
func downloadMods(c UsrConfig) {
|
||||
//var c = readCfg("config.yml")
|
||||
modlist := string(c.Server.ServDir) + "/mods/mod-list.json"
|
||||
|
||||
fmt.Printf("Updating mods from %s\n", modlist)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user