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:
parent
c7f7ab4646
commit
8c31299e1e
@ -52,7 +52,7 @@ class GenericFile(Node):
|
||||
tqdm_progress.update(1)
|
||||
elem = etree.SubElement(manifest, self.packed_name)
|
||||
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):
|
||||
data = KBinXML(data).to_binary()
|
||||
# offset, size, timestamp
|
||||
|
@ -8,8 +8,8 @@ from . import MD5Folder, ImageFile, GenericFile
|
||||
from .ImageDecoders import cachable_formats
|
||||
|
||||
class TextureList(GenericFile):
|
||||
def _load_from_filesystem(self):
|
||||
raw = GenericFile._load_from_filesystem(self)
|
||||
def _load_from_filesystem(self, **kwargs):
|
||||
raw = GenericFile._load_from_filesystem(self, **kwargs)
|
||||
k = KBinXML(raw)
|
||||
# fallback to a type we can encode
|
||||
for tex in k.xml_doc.iterchildren():
|
||||
|
@ -1,6 +1,7 @@
|
||||
import argparse
|
||||
import os
|
||||
import multiprocessing # for pyinstaller fixes
|
||||
from sys import exit # exe freeze
|
||||
try:
|
||||
# py 2
|
||||
input = raw_input
|
||||
|
@ -2,4 +2,4 @@ lxml
|
||||
tqdm
|
||||
pillow
|
||||
future
|
||||
kbinxml>=1.2
|
||||
kbinxml>=1.5
|
||||
|
Loading…
Reference in New Issue
Block a user