mirror of
https://github.com/mon/ifstools.git
synced 2024-11-11 20:27:11 +01:00
Graceful tree-size fallback
This commit is contained in:
parent
34a400d022
commit
5e97545b90
@ -67,7 +67,9 @@ class IFS:
|
||||
self.manifest = KBinXML(file.data[HEADER_SIZE:])
|
||||
self.tree = GenericFolder(self.data_blob, self.manifest.xml_doc)
|
||||
|
||||
assert ifs_tree_size == self.tree_size
|
||||
if ifs_tree_size != self.tree_size:
|
||||
print('Expected tree size {} but got {}. Repacking may fail!'
|
||||
.format(self.tree_size, ifs_tree_size))
|
||||
|
||||
def load_dir(self, path):
|
||||
self.is_file = False
|
||||
|
Loading…
Reference in New Issue
Block a user