# Need for Speed: Hot Pursuit 2 (PS2): Decompiled Need for Speed: Hot Pursuit 2 (PS2) into C++ with Claude

> Source: <https://reversedwithai.com/p/need-for-speed-hot-pursuit-2-ps2-50d33987>
> Published: 2026-10-30 18:01:02+00:00

## Evidence at a glance

Loading source evidence…

## What was done

This project provides a byte-exact C++ decompilation of the PS2 version of Need for Speed: Hot Pursuit 2 (SLUS-20362). It uses Claude models to generate code that compiles to the original retail executable using the game's original compiler.

This project is a matching decompilation of the PlayStation 2 version of Need for Speed: Hot Pursuit 2 (NTSC-U, SLUS-20362). The repository contains C++ source code designed to compile using the original game compiler, `ee-gcc 2.9-ee-991111`, to produce an executable that matches the retail binary byte-for-byte. The project does not include any assets or files from the original game disc; users must provide their own disc image for the build process. Anthropic's Claude models, utilized through Claude Code, performed the majority of the function-level decompilation. Each function was accepted only after the compiler produced the original bytes and passed verification checks. As of October 2026, 9,111 of 9,230 EA-written functions match, representing 93.1% of the code by bytes. The remaining code consists of Sony libraries, the C runtime, and hand-written assembly. A separate repository, nfshp2-port, uses this decompilation to provide a native port for Apple Silicon with additional features like widescreen support and modding capabilities.

Sources: [Source 1](https://raw.githubusercontent.com/nfshp2/nfshp2/HEAD/README.md)

## Reproduce it

```
tools/setup.sh; python3 tools/extract_elf.py DISC.iso; .venv/bin/python configure.py; .venv/bin/ninja
```

## Community

Ask a question, share what worked, or follow the next milestone.

[Your library](https://reversedwithai.com/library)
