mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-05 08:07:51 -05:00
fix lint errors in mpq package (#683)
This commit is contained in:
parent
6ef931ddd5
commit
aa4a936fde
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user