# r0y00/xbox2windows

> Xbox2Windows is a research project on static recompilation of Xbox Series X|S software to x64 Windows. It translates selected x64 machine code into C++ and selected gfx1013 shaders into desktop DXIL, so contributors can study translated game code and test the results on their own GPUs. The project is written mainly in Python and C++.

Source: https://github.com/r0y00/xbox2windows
Indexed: commit 82f0db6 on 2026-11-24 by Repowise. Facts come from the source and git history, not from the maintainer.

## Facts

- Language: Python
- Stars: 1,892 at index time
- License: MIT
- Code health: 5.2/10, Needs_work
- Last commit: 2026-11-24
- Contributors: 104

## Install

From the README: https://github.com/r0y00/xbox2windows

Clone the xbox2windows repository.
    git clone https://github.com/r0y00/xbox2windows.git

Move into the xbox2windows folder.
    cd xbox2windows

Create a Python virtual environment in the out/pe-env directory.
    python -m venv out/pe-env

Configure the build with the dev CMake preset.
    cmake --preset dev

Build the project with the dev CMake preset.
    cmake --build --preset dev

## How to use

Install the development requirements into the virtual environment.
    .\out\pe-env\Scripts\python.exe -m pip install -r requirements-dev.txt

## How it works

Xbox2Windows is organized into three main directories: src, tools and tests. The src directory holds code that makes Xbox-style memory and D3D12 calls from a title work on a desktop GPU. Entry points such as src/xmem_shim.cpp expose the XMem functions a title calls and pass the work to the era_ helpers beside them. Files such as src/xmem_mapped_pages.cpp and src/startup_stubs/d3d12_draw.inl are among the central files in this path. The tools directory holds scripts that rewrite BC7 texture blocks into the 4 KiB tiled layout, translate x64 functions from Windows PE images, and generate descriptors for Bink video. The tests directory holds the public test suite, which runs without a game installation, and CMakeLists.txt defines the CMake build for the C++ parts.

- .github/ISSUE_TEMPLATE/bug_report.yml: central file
- .github/ISSUE_TEMPLATE/config.yml: central file
- .github/ISSUE_TEMPLATE/enhancement.yml: central file
- .github/ISSUE_TEMPLATE/research.yml: central file
- .github/PULL_REQUEST_TEMPLATE.md: central file
Modules: tests, tools, src. 930 files, 241,368 lines, 14,846 symbols.

## Code health

- Score: 5.2/10 (Needs_work)
- Trend: 5.1 on 2026-11-24, 5.1 on 2026-11-24, 5.2 on 2026-11-24
- Rank: #247 of 265 ranked repos
- Hotspots: src/startup_stubs/d3d12_xs_device.cpp, src/startup_stubs/xcrdapi.cpp, src/startup_stubs/d3d12_draw.inl, src/xmem_mapped_pages.cpp, src/startup_stubs/runtime_proxy.cpp
- Lowest file: src/startup_stubs/d3d12_xs_device.cpp
- Dead code: none found

## Maintenance

- Last commit 2026-11-24, first commit 2026-11-20, 2,152 commits
- 104 contributors, bus factor 7

## Security

- Security findings are shown to signed-in users at https://repowise.dev/repo/r0y00/xbox2windows/security

## More

- Page: https://repowise.dev/repo/r0y00/xbox2windows
- Ask this codebase: https://repowise.dev/repo/r0y00/xbox2windows/chat
- Docs: https://repowise.dev/repo/r0y00/xbox2windows/docs
- MCP (signs in with Repowise on first use):
    claude mcp add --transport http repowise https://api.repowise.dev/mcp/r0y00/xbox2windows
