mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-05 17:57:17 -05:00
fixed build error & tbl: removed version check (because of error screen; we don't need to check version)
This commit is contained in:
parent
8d5cf7a26b
commit
c933e4b891
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user