Handled null entries in dats that weren't repacked
This commit is contained in:
parent
d25fdbc56a
commit
bfd5f18fc3
1 changed files with 6 additions and 1 deletions
|
@ -418,8 +418,13 @@ public class PkgPack extends AbstractPack {
|
||||||
entry.dataOffset = readBigUInt();
|
entry.dataOffset = readBigUInt();
|
||||||
entry.dataSize = readBigUInt();
|
entry.dataSize = readBigUInt();
|
||||||
entry.unpackedSize = readBigUInt();
|
entry.unpackedSize = readBigUInt();
|
||||||
|
|
||||||
|
if ( entry.dataSize == 0 ) { // Null entry, dat wasn't repacked.
|
||||||
|
entryList.add( null );
|
||||||
|
} else {
|
||||||
entryList.add( entry );
|
entryList.add( entry );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pathToIndexMap = new HashMap<String, Integer>( entryCount );
|
pathToIndexMap = new HashMap<String, Integer>( entryCount );
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue