[CDG5] Random questions

Elliot Nunn elliotnunn at fastmail.com
Sun Dec 9 12:05:28 AWST 2018


Brilliant!

I am considering an extra command line argument for
SimpleDeRez: '-decompress'. It would produce .r files like:

data 'scod' (123, $40 /*sysheap, _greggybits*/) {
	...decompressed data here...
};

The '-decompress' option would, like the '-ascii', '-fakehdr' and
'-compcmt' options, break the property of producing output identical to
the original DeRez. But all of these options would still have the
property that when fed into SimpleRez, they would produce a resource
file that compressed-resource-aware MacOS finds indistinguishable from
the original. And the use of /* _greggybits */ would allow the original
Rez to process the file and just output non-compressed resources.

This is a lot of work, of course. Re-compression code would be required
in addition to Max's de-compression code. Re-compressing identically to
the original implementation, like the newworld-rom LZSS code, would be
desirable but is not crucial to the round-tripping requirement. And a
check for a corresponding 'dcmp' or 'ncmp' resource, assuming that the
System file cannot be relied upon, would be appropriate.

As soon as recompression is implemented (help Max!!), this feature can
be released supporting only GreggyBits for the time being. After all, we
will need to allow for obsure third-party 'dcmp's that we have no hope
of decompressing. Has anybody identified Mac OS 9's new format?

All of this seems like a pain, I know. But imagine how powerful the
MakeHFS/DumpHFS workflow would be if we could use it to take any release
from (say) the 'Mac OS Anthology', make some patches, and spin up a
bootable disk image.


> On 4 Dec 2018, at 9:59 pm, Max Poliakovski <maximumspatium at googlemail.com> wrote:
> 
> I just push my cool GreggDecompressor to Github for you to pick: https://github.com/maximumspatium/ResDecompress
> 
> It contains all missing parts (predefined lookup table and bytewise decompression) now. Enjoy!
> _______________________________________________
> cdg5 mailing list
> cdg5 at ucc.asn.au
> https://lists.ucc.gu.uwa.edu.au/mailman/listinfo/cdg5



More information about the cdg5 mailing list