1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-16 04:25:23 +00:00

fix lint errors in mpq package (#683)

This commit is contained in:
lord 2020-08-04 19:52:54 -07:00 committed by GitHub
parent 6ef931ddd5
commit aa4a936fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,14 +369,17 @@ func (v *MPQ) GetFileList() ([]string, error) {
return filePaths, nil return filePaths, nil
} }
// Path returns the MPQ file path
func (v *MPQ) Path() string { func (v *MPQ) Path() string {
return v.filePath return v.filePath
} }
// Contains returns bool for whether the given filename exists in the mpq
func (v *MPQ) Contains(filename string) bool { func (v *MPQ) Contains(filename string) bool {
return v.hashEntryMap.Contains(filename) return v.hashEntryMap.Contains(filename)
} }
// Size returns the size of the mpq in bytes
func (v *MPQ) Size() uint32 { func (v *MPQ) Size() uint32 {
return v.data.ArchiveSize return v.data.ArchiveSize
} }