Call of Duty: Black Ops II
OriginXbox 360
TechnologyStatic recompilation (native C/C++)
Available forWindows
View official projectAbout the project
Call of Duty: Black Ops II es un videojuego de disparos en primera persona desarrollado por Treyarch y distribuido por Activision. Se lanzó para Windows, PlayStation 3 y Xbox 360 el 12 de noviembre de 2012, y para Wii U el 18 de noviembre en América del Norte y el 30 de noviembre en las regiones PAL. Black Ops II es el noveno juego de la franquicia de videojuegos Call of Duty, una secuela del juego de 2010 Call of Duty: Black Ops y el primer juego de Call of Duty para Wii U.
Official project information
Black Ops II Recompiled
Warning: This game has issues, but is in a playable state.
This repository contains a ReXGlue-based recompiled setup for Call of Duty: Black Ops II.
It currently targets:
defaultfordefault.xexdefault_mpfordefault_mp.xex
This repo does not ship the game, extracted assets, or Xbox 360 executables. You must provide your own legally obtained dump.
What This Repo Expects
The codegen configs point at:
assets/default.xexassets/default_mp.xex
The runtime also expects the rest of the game data under assets/.
Minimum working layout:
bo2/
assets/
default.xex
default_mp.xex
...other extracted BO2 assets...
default/
default_mp/
scripts/
assets/ is intentionally ignored by git and must be supplied locally.
Required Game Dump
Reference ISO used for this setup:
- File:
Call of Duty - Black Ops II (World).iso - SHA-1:
A5F56AD3EC9FE2F1D45A92FB141FD046ED9D5C13
Use your own dump and verify the hash if you want to match the same source image.
Required Assets
You need to extract the game contents from your own BO2 dump and place them in assets/.
At minimum:
assets/default.xexassets/default_mp.xex- the supporting fastfiles / packages / media the game normally loads at runtime
If default.xex or default_mp.xex are missing, codegen and runtime launch will fail.
Requirements
Windows:
- CMake 3.25+
- Ninja
- Clang / LLVM
- ReXGlue SDK checked out separately
rexglueavailable onPATH
Linux:
- CMake 3.25+
- Ninja
- Clang 20 /
clang++-20 - ReXGlue SDK checked out separately
rexglueavailable onPATH
Both projects also expect the SDK to be available via REXSDK_DIR or the existing local CMake setup.
Setup Flow
The normal flow is:
- Extract your BO2 game files into
assets/ - Run codegen
- Run CMake preset/configure
- Build
Supported Platforms
| Platform | Status | Support |
|---|---|---|
| Windows | Tested | Supported |
| Linux | Untested | Unsupported (temporarily) |
Windows
Codegen:
scripts\windows\codegen.bat sp
scripts\windows\codegen.bat mp
scripts\windows\codegen.bat both
Preset/configure:
scripts\windows\preset.bat sp
scripts\windows\preset.bat mp
scripts\windows\preset.bat both
scripts\windows\preset.bat both --preset win-amd64-debug
Build:
scripts\windows\build_and_setup.bat sp
scripts\windows\build_and_setup.bat mp
scripts\windows\build_and_setup.bat both
scripts\windows\build_and_setup.bat both --preset win-amd64-relwithdebinfo
Accepted target aliases:
spordefaultmpordefault_mpboth
Accepted preset style:
--preset win-amd64-debug- or bare preset name such as
win-amd64-debug
Linux
Codegen:
scripts/linux/codegen.sh sp
scripts/linux/codegen.sh mp
scripts/linux/codegen.sh both
Preset/configure:
scripts/linux/preset.sh sp
scripts/linux/preset.sh mp
scripts/linux/preset.sh both
scripts/linux/preset.sh both --preset linux-amd64-debug
Build:
scripts/linux/build_and_setup.sh sp
scripts/linux/build_and_setup.sh mp
scripts/linux/build_and_setup.sh both
scripts/linux/build_and_setup.sh both --preset linux-amd64-relwithdebinfo
Output
Built executables are copied to:
out/
default.exe
default_mp.exe
On Linux, the build script copies:
out/
default
default_mp
Notes
- This repo is source + build logic only. It does not include redistributable game content.
assets/must stay local.- If you change the supplied XEX files, rerun codegen before rebuilding.
defaultanddefault_mpeach have their own codegen config:
