1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-09-24 12:16:14 -04:00

fixed build error & tbl: removed version check (because of error screen; we don't need to check version)

This commit is contained in:
M. Sz 2021-02-25 14:11:13 +01:00
parent 8d5cf7a26b
commit c933e4b891
2 changed files with 14 additions and 17 deletions

View File

@ -144,16 +144,12 @@ func LoadTextDictionary(dictionaryData []byte) (TextDictionary, error) {
return nil, fmt.Errorf("reading hash table size: %v", err)
}
// Version (always 0)
version, err := br.ReadByte()
// Version
_, err = br.ReadByte()
if err != nil {
return nil, fmt.Errorf("reading version: %v", err)
}
if version != 0 {
return nil, fmt.Errorf("version isn't equal to 0")
}
_, _ = br.ReadUInt32() // StringOffset
// When the number of times you have missed a match with a

View File

@ -65,17 +65,18 @@ type AssetManager struct {
*d2util.Logger
*d2loader.Loader
tables []d2tbl.TextDictionary
dt1s d2interface.Cache
ds1s d2interface.Cache
cofs d2interface.Cache
dccs d2interface.Cache
animations d2interface.Cache
fonts d2interface.Cache
palettes d2interface.Cache
transforms d2interface.Cache
Records *d2records.RecordManager
language string
tables []d2tbl.TextDictionary
dt1s d2interface.Cache
ds1s d2interface.Cache
cofs d2interface.Cache
dccs d2interface.Cache
animations d2interface.Cache
fonts d2interface.Cache
palettes d2interface.Cache
transforms d2interface.Cache
Records *d2records.RecordManager
language string
languageModifier int
}
// SetLogLevel sets the log level for the asset manager, record manager, and file loader