|
|
|
|
|
by sischoel
1117 days ago
|
|
A few years ago I was trying if I could port that code to Linux. I made some decent progress, but in the end I got stuck trying to convert the resources (images and audio files) to a more modern format. For example, the PICT format (https://en.wikipedia.org/wiki/PICT) is not just some pixel encoding but also contains QuickDraw commands. There are some open source converters, but they seem to support only a subset. And then I had to concentrate on finishing my degree so I abandoned that project. Other things I remember:
- Data is mapped directly from files to C structs - this provided some challenges as I had to convert big endian to little endian.
- Classic MacOS handled memory allocations quite a bit different, if one wanted to access a dynamically allocated buffer, they first had to acquire a lock on that part of memory as otherwise the operating system was allowed to move the data to some other address. My memory on these details is quite a bit fuzzy though, so I can't guarantee that what I wrote here is 100% correct. |
|
Yeah, then I get to tediously re-crop the artwork in the screenshots for correctness.
Also the screenshot is pixel-doubled (Retina display, I suppose) but a little GraphicsMajick fixes it:
gm convert doubled_image.png -filter point -resize 50% new_image.png