{"slug": "need-for-speed-hot-pursuit-2-ps2-decompiled-need-for-speed-hot-pursuit-2-ps2-c", "title": "Need for Speed: Hot Pursuit 2 (PS2): Decompiled Need for Speed: Hot Pursuit 2 (PS2) into C++ with Claude", "summary": "A matching C++ decompilation of the PlayStation 2 version of Need for Speed: Hot Pursuit 2 (NTSC-U, SLUS-20362) has reached 9,111 of 9,230 EA-written functions, or 93.1% of the code by bytes, as of October 2026, according to the nfshp2 project's README. Anthropic's Claude models, used through Claude Code, performed the majority of the function-level decompilation, with each function accepted only after compiling with the original ee-gcc 2.9-ee-991111 compiler produced bytes matching the retail binary. The repository ships no game assets, requiring users to supply their own disc image, and a separate nfshp2-port repository builds on it for a native Apple Silicon port with widescreen and modding support.", "body_md": "## Evidence at a glance\n\nLoading source evidence…\n\n## What was done\n\nThis 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.\n\nThis 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.\n\nSources: [Source 1](https://raw.githubusercontent.com/nfshp2/nfshp2/HEAD/README.md)\n\n## Reproduce it\n\n```\ntools/setup.sh; python3 tools/extract_elf.py DISC.iso; .venv/bin/python configure.py; .venv/bin/ninja\n```\n\n## Community\n\nAsk a question, share what worked, or follow the next milestone.\n\n[Your library](https://reversedwithai.com/library)", "url": "https://wpnews.pro/news/need-for-speed-hot-pursuit-2-ps2-decompiled-need-for-speed-hot-pursuit-2-ps2-c", "canonical_source": "https://reversedwithai.com/p/need-for-speed-hot-pursuit-2-ps2-50d33987", "published_at": "2026-10-30 18:01:02+00:00", "updated_at": "2026-10-30 19:19:29.442104+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-tools", "developer-tools"], "entities": ["Need for Speed: Hot Pursuit 2", "PlayStation 2", "Anthropic", "Claude", "Claude Code", "nfshp2", "nfshp2-port", "Apple Silicon"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/need-for-speed-hot-pursuit-2-ps2-decompiled-need-for-speed-hot-pursuit-2-ps2-c", "markdown": "https://wpnews.pro/news/need-for-speed-hot-pursuit-2-ps2-decompiled-need-for-speed-hot-pursuit-2-ps2-c.md", "text": "https://wpnews.pro/news/need-for-speed-hot-pursuit-2-ps2-decompiled-need-for-speed-hot-pursuit-2-ps2-c.txt", "jsonld": "https://wpnews.pro/news/need-for-speed-hot-pursuit-2-ps2-decompiled-need-for-speed-hot-pursuit-2-ps2-c.jsonld"}}