u/Dry_Usual7602

Image 1 — Call of Duty 4 running full native on macOS
Image 2 — Call of Duty 4 running full native on macOS
▲ 333 r/macgaming

Call of Duty 4 running full native on macOS

In case you aren't aware. There have been a few CoD games that have shipped with debug symbols (.pdb files). They pretty much lay out all function names and files, which is intended to be used with debugging. One of these was Call of Duty 4.

Some people who are smarter than me took it upon themselves to reverse-engineer the multiplayer client + dedicated server of CoD4 called KisakCOD (You can find it here: https://github.com/SwagSoftware/KisakCOD )

I thought I'd try and port it to arm64 macOS (I always enjoyed cod4, I remember playing on a ton of modded servers). This has been worked on for the past month (so it's a bit outdated compared to the repo). The fast file load system had to be reworked since literally all of it used 32-bit pointers that I had to rewrite to use 64-bit. I'm using SDL3 for window and input, and I've rerouted most of the texture and sound calls through these. As such, most of the menu is functioning.

Technically can get "in-game", but nothing renders since I haven't gotten to that yet (I've been slacking a lot). There's also a ton of issues with the font (strings keep getting shifted so there's some bugs, and the Metal renderer is incomplete so some of the screens are also wonky)

Dedicated servers work fully and can load maps and initialize game scripts. At some point I do intend to help out with the developers of the repo, but I can't pull request any of this as its messy and I've had to gut and rewrite a ton of stuff (all windows stuff have been removed, this is only compilable for macOS, and theoretically linux)

I'll keep updating as I go but progress is really slow.

u/Dry_Usual7602 — 10 hours ago