mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-12-27 20:46:32 -05:00
Fix case sensitivity when loading MPQ files (#256)
* Fix case sensitivity when loading MPQ files * remove print
This commit is contained in:
parent
21cead11b9
commit
cead000c3f
@ -3,7 +3,6 @@ package d2core
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
"sync"
|
||||
@ -92,12 +91,7 @@ func (am *assetManager) loadArchive(archivePath string) (*d2mpq.MPQ, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
stat, err := os.Stat(archivePath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := am.archiveCache.insert(archivePath, archive, int(stat.Size())); err != nil {
|
||||
if err := am.archiveCache.insert(archivePath, archive, int(archive.Data.ArchiveSize)); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user