mirror of
https://github.com/elliotnunn/macresources.git
synced 2024-06-07 21:29:27 +00:00
Create compress/extract stubs
This commit is contained in:
parent
01c8adb82f
commit
640ece9c1d
17
macresources/FakeResDecompress.py
Normal file
17
macresources/FakeResDecompress.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
def GetEncoding(inf):
|
||||
if not inf.startswith(b'\xA8\x9F\x65\x72'):
|
||||
encoding = 'unknown'
|
||||
elif inf[6] == 8:
|
||||
encoding = 'DonnBits'
|
||||
elif inf[6] == 9:
|
||||
defprocID = int.from_bytes(len[8:10], byteorder='big', signed=True)
|
||||
encoding = 'GreggyBits%d' % defprocID
|
||||
return encoding
|
||||
|
||||
|
||||
def DecompressResource(inf):
|
||||
return inf
|
||||
|
||||
|
||||
def CompressResource(inf, encoding):
|
||||
return inf
|
|
@ -1,6 +1,7 @@
|
|||
import collections
|
||||
import struct
|
||||
import enum
|
||||
from FakeResDecompress import DecompressResource, CompressResource
|
||||
|
||||
|
||||
FAKE_HEADER_RSRC_TYPE = b'header' # obviously invalid
|
||||
|
|
Loading…
Reference in New Issue
Block a user