1
0
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:
Will Toohey 2018-01-06 15:18:21 +10:00
parent 34a400d022
commit 5e97545b90
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -12,7 +12,7 @@ if sys.version_info < (3,0):
setup(
name='ifstools',
version='1.0',
version='1.1',
entry_points = {
'console_scripts': ['ifstools=ifstools:main'],
},