diff --git a/d2common/d2fileformats/d2tbl/text_dictionary.go b/d2common/d2fileformats/d2tbl/text_dictionary.go index 4413d5c2..b0b8e51b 100644 --- a/d2common/d2fileformats/d2tbl/text_dictionary.go +++ b/d2common/d2fileformats/d2tbl/text_dictionary.go @@ -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 diff --git a/d2core/d2asset/asset_manager.go b/d2core/d2asset/asset_manager.go index cba1be27..a5ac1467 100644 --- a/d2core/d2asset/asset_manager.go +++ b/d2core/d2asset/asset_manager.go @@ -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