From aa4a936fde13ee963d3e233474f85dc1d638331e Mon Sep 17 00:00:00 2001 From: lord Date: Tue, 4 Aug 2020 19:52:54 -0700 Subject: [PATCH] fix lint errors in mpq package (#683) --- d2common/d2fileformats/d2mpq/mpq.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/d2common/d2fileformats/d2mpq/mpq.go b/d2common/d2fileformats/d2mpq/mpq.go index c56d7b2b..961f277c 100644 --- a/d2common/d2fileformats/d2mpq/mpq.go +++ b/d2common/d2fileformats/d2mpq/mpq.go @@ -369,14 +369,17 @@ func (v *MPQ) GetFileList() ([]string, error) { return filePaths, nil } +// Path returns the MPQ file path func (v *MPQ) Path() string { return v.filePath } +// Contains returns bool for whether the given filename exists in the mpq func (v *MPQ) Contains(filename string) bool { return v.hashEntryMap.Contains(filename) } +// Size returns the size of the mpq in bytes func (v *MPQ) Size() uint32 { return v.data.ArchiveSize }