Python library that provides command-line SimpleRez and SimpleDeRez
Go to file
Elliot Nunn ddfb909212 Replace testbed with a friendly API.
The GetEncoding function will allow macresources to cheaply and simply
determine resource encoding without committing to a time-consuming
extraction.
2018-12-13 12:51:56 +08:00
.gitignore Initial commit. 2018-12-04 14:44:09 +01:00
Compressed Initial commit. 2018-12-04 14:44:09 +01:00
Expanded Initial commit. 2018-12-04 14:44:09 +01:00
GreggBits.py Let functions create/parse their own res header. 2018-12-13 12:51:56 +08:00
README.md Initial commit. 2018-12-04 14:44:09 +01:00
ResDecompress.py Replace testbed with a friendly API. 2018-12-13 12:51:56 +08:00

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.