~welt/murse

fb8939e2828ff2ab4e9503d346d250ff2bd143bf — welt 2 years ago 789510a
Switch back to filepath.Base, fixes gameinfo protection.
2 files changed, 2 insertions(+), 2 deletions(-)

M upgrade.go
M verify.go
M upgrade.go => upgrade.go +1 -1
@@ 146,7 146,7 @@ func upgradeMain(dir string, url string, threads int, http1 bool, owGameInfo boo
		return true
	}

	isOF := (filepath.Dir(dir) == "open_fortress")
	isOF := (filepath.Base(dir) == "open_fortress")

	for _, v := range writes {
		change := v

M verify.go => verify.go +1 -1
@@ 154,7 154,7 @@ func verifyMain(dir string, url string, repair bool, http1 bool, owGameInfo bool
		return 1
	}

	isOF := (filepath.Dir(absPath) == "open_fortress")
	isOF := (filepath.Base(absPath) == "open_fortress")

	for _, change := range writes {
		path, err := resolvePath(dir, change.Path)