mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-15 06:33:46 -04: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
|
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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user