forked from Ports/perfect_dark
Decompile language files
This commit is contained in:
1 parent
c9dec5deac
commit
0de8b2ab59
275 files changed
+15642
-35
No files matched your search
+16
-6
@@ -65,12 +65,22 @@ class Extractor:
|
||||
name = names[index]
|
||||
self.write('files/%s' % name, content)
|
||||
|
||||
if name.endswith('Z') and len(content):
|
||||
unzippedname = name[:-1]
|
||||
try:
|
||||
self.write('files/%s' % unzippedname, self.decompress(content))
|
||||
except:
|
||||
print(name)
|
||||
unzippedname = name[:-1] if name.endswith('Z') else name
|
||||
|
||||
if name.startswith('C'):
|
||||
self.write('files/chrs/%s.bin' % unzippedname, self.decompress(content))
|
||||
|
||||
if name.startswith('G'):
|
||||
self.write('files/guns/%s.bin' % unzippedname, self.decompress(content))
|
||||
|
||||
if name.startswith('L'):
|
||||
self.write('files/lang/%s.bin' % unzippedname, self.decompress(content))
|
||||
|
||||
if name.startswith('P') and len(content):
|
||||
self.write('files/props/%s.bin' % unzippedname, self.decompress(content))
|
||||
|
||||
if name.startswith('U'):
|
||||
self.write('files/setup/%s.bin' % unzippedname, self.decompress(content))
|
||||
|
||||
def get_file_offsets(self):
|
||||
i = self.val('files')
|
||||
|
||||
Reference in new issue
Block a user