mirror of
https://github.com/elliotnunn/tbxi.git
synced 2025-03-11 00:29:37 +00:00
Add .pict extension to PICT files
Nicer browsing in Mac OS X
This commit is contained in:
parent
e2d230f293
commit
a1b64ca588
@ -113,7 +113,7 @@ def dump(binary, dest_dir):
|
||||
dispatcher.dump(decldata, path.join(dest_dir, 'DeclData'))
|
||||
|
||||
# now for the tricky bit: resources :(
|
||||
unavail_filenames = set(['', '.pef'])
|
||||
unavail_filenames = set(['', '.pef', '.pict'])
|
||||
types_where_Main_should_be_in_filename = set()
|
||||
|
||||
for i, offset in enumerate(extract_resource_offsets(binary)):
|
||||
@ -142,6 +142,7 @@ def dump(binary, dest_dir):
|
||||
filename = filename.strip('_')
|
||||
while '__' in filename: filename = filename.replace('__', '_')
|
||||
if data.startswith(b'Joy!peff'): filename += '.pef'
|
||||
if entry.rsrcType == b'PICT': filename += '.pict'
|
||||
while filename in unavail_filenames: filename = '_' + filename
|
||||
|
||||
unavail_filenames.add(filename)
|
||||
|
Loading…
x
Reference in New Issue
Block a user