mirror of
https://github.com/elliotnunn/macresources.git
synced 2024-12-12 03:29:15 +00:00
Prepare for merge into macresources
This commit is contained in:
parent
b7739a449b
commit
969493be9f
11
.gitignore
vendored
11
.gitignore
vendored
@ -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
|
|
BIN
Compressed
BIN
Compressed
Binary file not shown.
22
README.md
22
README.md
@ -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.
|
|
@ -1 +0,0 @@
|
|||||||
from .ResDecompress import GetEncoding, DecompressResource, CompressResource
|
|
@ -1,4 +1,4 @@
|
|||||||
from ResDecompress import GetEncoding, DecompressResource, CompressResource
|
from .macresources.compression import GetEncoding, DecompressResource, CompressResource
|
||||||
|
|
||||||
def compress_then_extract(dat, encoding):
|
def compress_then_extract(dat, encoding):
|
||||||
a = CompressResource(dat, encoding);
|
a = CompressResource(dat, encoding);
|
Loading…
Reference in New Issue
Block a user