~welt/murse

354c5e0081b78e5dd1935a893c0d47739a426b27 — welt 3 months ago a8763f6
Add gameinfo.txt overwrite flag to verifyMain, and use it.
1 files changed, 2 insertions(+), 2 deletions(-)

M verify.go
M verify.go => verify.go +2 -2
@@ 10,7 10,7 @@ import (
	"strings"
)

func verifyMain(dir string, url string, repair bool, http2 bool) int {
func verifyMain(dir string, url string, repair bool, http2 bool, owGameInfo bool) int {
	if !strings.HasSuffix(url, "/") {
		url = url + "/"
	}


@@ 114,7 114,7 @@ func verifyMain(dir string, url string, repair bool, http2 bool) int {
		var fix func() error
		if repair {
			fix = func() error {
				if isOF && change.Path == "gameinfo.txt" {
				if !owGameInfo && isOF && change.Path == "gameinfo.txt" {
					exists, err := isExists(fpath)
					if err != nil {
						return err