mirror of
https://github.com/mon/ifstools.git
synced 2025-02-02 12:27:23 +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.manifest = KBinXML(file.data[HEADER_SIZE:])
|
||||||
self.tree = GenericFolder(self.data_blob, self.manifest.xml_doc)
|
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):
|
def load_dir(self, path):
|
||||||
self.is_file = False
|
self.is_file = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user