Create compress/extract stubs

This commit is contained in:
Elliot Nunn 2018-12-11 12:25:35 +08:00
parent 01c8adb82f
commit 640ece9c1d
2 changed files with 18 additions and 0 deletions

View 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

View File

@ -1,6 +1,7 @@
import collections
import struct
import enum
from FakeResDecompress import DecompressResource, CompressResource
FAKE_HEADER_RSRC_TYPE = b'header' # obviously invalid