Prepare for merge into macresources

This commit is contained in:
Elliot Nunn 2019-01-10 13:27:30 +08:00
parent b7739a449b
commit 969493be9f
8 changed files with 1 additions and 35 deletions

11
.gitignore vendored
View File

@ -1,11 +0,0 @@
# Files to be ignored by Git.
.git
# Python auto-generated files and folders.
/__pycache__
Dump
# System files.
.DS_Store
Thumb.db

Binary file not shown.

BIN
Expanded

Binary file not shown.

View File

@ -1,22 +0,0 @@
## About this repository
This repository contains Python tools for dealing with compressed MacOS resources.
It's also an attempt to document the undocumented “dcmp” mechanism in System 7
including all required data structures and compression algorithms.
For the moment being, the code accepts only binary files as input. This can be
easily updated to process data from streams and memory-based arrays.
The following algorithms are currently supported:
- GreggyBits
Requires Python 3.
### Usage:
python ResDecompress.py [input file]
If no input file was specified, the "Compressed" file resided in the same folder
will be processed by default.
At the end, a "Dump" file will be generated containing decompressed data.

View File

@ -1 +0,0 @@
from .ResDecompress import GetEncoding, DecompressResource, CompressResource

View File

@ -1,4 +1,4 @@
from ResDecompress import GetEncoding, DecompressResource, CompressResource
from .macresources.compression import GetEncoding, DecompressResource, CompressResource
def compress_then_extract(dat, encoding):
a = CompressResource(dat, encoding);