From eaeaf5adb968e3cb84009d6deffb52b1bb1bfdae Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Wed, 6 Nov 2019 22:50:20 -0600 Subject: [PATCH] fix build, rename Common to common (#99) NTFS life --- {Common => common}/UniqueItems.go | 0 core/Engine.go | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename {Common => common}/UniqueItems.go (100%) diff --git a/Common/UniqueItems.go b/common/UniqueItems.go similarity index 100% rename from Common/UniqueItems.go rename to common/UniqueItems.go diff --git a/core/Engine.go b/core/Engine.go index 6328a420..6415f014 100644 --- a/core/Engine.go +++ b/core/Engine.go @@ -123,7 +123,7 @@ func (v *Engine) mapMpqFiles() { /* func (v *Engine) mapMpqFiles() { log.Println("mapping mpq file structure") - v.Files = make(map[string]*Common.MpqFileRecord) + v.Files = make(map[string]*common.MpqFileRecord) v.CheckedPatch = make(map[string]bool) for _, mpqFileName := range v.Settings.MpqLoadOrder { mpqPath := path.Join(v.Settings.MpqPath, mpqFileName) @@ -147,7 +147,7 @@ func (v *Engine) mapMpqFiles() { } continue } - v.Files[transFilePath] = &Common.MpqFileRecord{ + v.Files[transFilePath] = &common.MpqFileRecord{ mpqPath, false, ""} v.CheckedPatch[transFilePath] = false } @@ -185,7 +185,7 @@ func (v *Engine) LoadFile(fileName string) []byte { if fileInPatch { patchLoaded = true // set the path to the patch so it will be loaded there in the future - mpqFile = &Common.MpqFileRecord{patchMpqFilePath, false, ""} + mpqFile = &common.MpqFileRecord{patchMpqFilePath, false, ""} v.Files[strings.ToLower(fileName)] = mpqFile } } @@ -208,7 +208,7 @@ func (v *Engine) LoadFile(fileName string) []byte { } // We found the super-secret file! found = true - v.Files[strings.ToLower(fileName)] = &Common.MpqFileRecord{mpqFilePath, false, ""} + v.Files[strings.ToLower(fileName)] = &common.MpqFileRecord{mpqFilePath, false, ""} break } if !found {