Cat in the Hat Mac Port

← Back to the game's page

How a 2003 Xbox game was recompiled to run natively on a Mac

Published 27 November 2026

The Cat in the Hat Mac Port is not an emulator. It takes the game's original program from your own Xbox disc and translates it, ahead of time, into a program for Apple Silicon. This is called static recompilation. The result runs as a normal Mac app, which is why it can draw in widescreen at four times the original resolution.

How is this different from an emulator?

An emulator pretends to be the whole console while the game runs: it reads the Xbox's Intel instructions one after another and acts each one out. Static recompilation does that translation once, before the game starts. The game's code becomes C, and a normal compiler turns the C into Apple Silicon code. Nothing is being imitated while you play, so the game spends very little of each frame on its own work: about 2.7 of the 16.7 milliseconds available at 60 frames a second.

The translator is Recompose, an open-source toolkit for original Xbox games. This project is built on it.

The translation, by the numbers

Functions found
5,955 in the game's program, of which 5,948 were translated
Translated code
About 1.04 million lines of C, in 31 files
Xbox system calls
118 used by the game, all 118 handled
Time to translate
About 7 seconds for all four stages
First build
Linked on the first try, in 5 seconds

What stands in for the rest of the Xbox?

Five bugs, and what they turned out to be

The Fish was a pink blob

On the first run that reached the house, magic sparkles were hard-edged cyan squares, the menu text was magenta, and the Fish's glass bowl was a pink blob. The cause was byte order. The Xbox names a 32-bit colour from its highest byte, and four texture formats were being read the other way round, so the see-through value was being taken from red. Reversing each texel for those four formats fixed all of it at once.

The music was buried

Some sounds were missing; restoring them made the music seem to vanish. Both had one cause. The game's 3D sounds are meant to pass through the Xbox sound chip's positional filter, which places each one left or right and quieter with distance. Without the filter every sound played at full strength in both ears, about 8 decibels over the music. Moving to a model of the real chip put the balance back where the console has it.

Everything was black at double resolution

Turning the resolution up made the menus and levels go black. The game draws its scene into a 640 by 480 picture first, and two size checks compared that picture against the screen in different units. At the original size they agreed; at any other size the scene was given an empty depth buffer. Comparing in one unit fixed it, and that is what made 4x possible.

A whole level drew white

The laundry level's walls, floor and sky were flat white. Its materials read from a texture slot that the game leaves empty on purpose. The port was filling empty slots with white, and the level's maths doubled it until every pixel was saturated. An empty slot now reads as black, as it does on the console.

Grey squares over the steam

In the boiler level, steam vents were covered by grey blocks. The steam is a heat-haze effect that bends the picture behind it using a small noise texture. The bending step was missing, so every pixel of a steam sprite showed one flat sample of the scene. With the offset applied, the squares became a soft shimmer.

What the port adds on top

Because the game is a native program, its picture is no longer tied to what a 2003 console could draw. The port adds true widescreen, up to 4x resolution, soft shadows and shading, rippling water, an optional pack of HD textures, and support for modern controllers. Each one has its own switch, so the original look is always one setting away. See them side by side on the game's page.

Where is the code?

The project is open source, and so is Recompose. Start at the project's GitHub page. To play, you need your own disc: here is how to make a disc image from it.

Ready? The app is free and takes about a minute to set up once you have your disc image.

Download for Mac