1
0
mirror of https://github.com/mon/ifstools.git synced 2024-11-24 01:50:10 +01:00

Bugfixes and hassle free install

This commit is contained in:
Will Toohey 2018-05-31 15:22:49 +10:00
parent c7f7ab4646
commit 8c31299e1e
4 changed files with 5 additions and 4 deletions

View File

@ -52,7 +52,7 @@ class GenericFile(Node):
tqdm_progress.update(1) tqdm_progress.update(1)
elem = etree.SubElement(manifest, self.packed_name) elem = etree.SubElement(manifest, self.packed_name)
elem.attrib['__type'] = '3s32' elem.attrib['__type'] = '3s32'
data = self.load(convert_kbin = False) data = self.load(convert_kbin = False, **kwargs)
if self.name.endswith('.xml') and not KBinXML.is_binary_xml(data): if self.name.endswith('.xml') and not KBinXML.is_binary_xml(data):
data = KBinXML(data).to_binary() data = KBinXML(data).to_binary()
# offset, size, timestamp # offset, size, timestamp

View File

@ -8,8 +8,8 @@ from . import MD5Folder, ImageFile, GenericFile
from .ImageDecoders import cachable_formats from .ImageDecoders import cachable_formats
class TextureList(GenericFile): class TextureList(GenericFile):
def _load_from_filesystem(self): def _load_from_filesystem(self, **kwargs):
raw = GenericFile._load_from_filesystem(self) raw = GenericFile._load_from_filesystem(self, **kwargs)
k = KBinXML(raw) k = KBinXML(raw)
# fallback to a type we can encode # fallback to a type we can encode
for tex in k.xml_doc.iterchildren(): for tex in k.xml_doc.iterchildren():

View File

@ -1,6 +1,7 @@
import argparse import argparse
import os import os
import multiprocessing # for pyinstaller fixes import multiprocessing # for pyinstaller fixes
from sys import exit # exe freeze
try: try:
# py 2 # py 2
input = raw_input input = raw_input

View File

@ -2,4 +2,4 @@ lxml
tqdm tqdm
pillow pillow
future future
kbinxml>=1.2 kbinxml>=1.5