RepositoryC++ARArgentina
sammwyy

sammwyy/xvalkyrie

Experimental Xbox One (Durango) & Series X|S (Scarlett) compatibility layer for Windows

235stars
14forks
7issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: xbox-series-x

#1 Repository Của Ngày

1
TINIX TRENDING·Chủ đề: durango

#1 Repository Của Ngày

1
TINIX TRENDING·Chủ đề: emulation

#1 Repository Của Ngày

XValkyrie

XValkyrie

Xbox One and Xbox Series X|S software on Windows, by translation.

build license language platform

Status · How it works · Building · Usage · Roadmap

XValkyrie runs Xbox One and Xbox Series X|S software on 64-bit Windows. It is written in C++20.

It is a translation layer, not an emulator. Both consoles are x86-64 machines that run a cut-down Windows, so there is no CPU to emulate and no system to boot: a title's executable is mapped into a process, its code runs natively, and the console libraries it imports (d3d12_xs.dll, xgameruntime.dll, kernelx.dll and the rest) are answered by implementations written here on top of the host's Direct3D, audio and input. The closest relatives are Wine and Proton, not console emulators.

What has to be translated is what differs from a PC:

  • the console builds of Direct3D 11 and 12, whose objects a title reads and writes directly;
  • shaders, which Series titles ship as machine code for the console's GPU instead of portable bytecode;
  • memory, where a title owns physical pages and places resources on them itself;
  • the system services: users, saved games, the Gaming Runtime, WinRT on Xbox One.

Status

The project is experimental. It starts real titles of both consoles; it does not play them through.

  • Xbox One. ERA titles (Direct3D 11.X, WinRT) reach their menus and scenes with a gamepad driven from the keyboard or XInput. Saved games, audio decoding and Xbox Live are stubs or absent.
  • Xbox Series X|S. 37 of the 40 public GDK samples that build for Series draw their picture. Retail titles start, create their device and present frames. Their shaders are translated from the GPU's machine code: of the 2055 shaders one retail title creates on the way to its first screen, 1786 translate and compile. The picture of those titles is not right yet.

status map

Every function and instruction behind these numbers is listed in docs/STATUS.md.

The block above is generated: python tools/status.py after a build. The roadmap has what is planned, and docs/research what was found out on the way, with the evidence for it.

How it works

  1. Inspect. The executable is parsed without being loaded. Its import table tells the console: d3d12_x.dll and kernelx.dll mean Xbox One, d3d12_xs.dll means Series, the stock Direct3D DLLs mean a PC build, which is refused.
  2. Map. The image is mapped and relocated, and every import is bound through one resolver: to an implementation of this project, to the title's own DLL, to the console system DLL the title shipped with when that is pure computation, to the host's function when it is one console titles may call, and otherwise to a stub that names itself when called.
  3. Run. The entry point runs on a thread of its own, inside a process of its own (xvboot), with the window, the graphics device and the input coming from the host.
  4. Translate. Direct3D calls go to the host's Direct3D 11 or 12 through objects with the console's layout. Console shaders are translated to HLSL once and kept in a cache.

ARCHITECTURE.md is the tour of the code: what each directory is for, how the layers depend on each other and where new code goes.

Building

Windows 10 or 11, 64-bit, with Visual Studio 2022 ("Desktop development with C++"), CMake 3.25 or later and Python 3. CMake fetches the dependencies on the first configure.

build.cmd --test

This leaves xvalkyrie.exe and xvboot.exe in build\win\Release.

ArgumentEffect
DebugA debug build instead of Release
--testRuns CTest after building
--vulkanAlso builds Direct3D 11 on Vulkan (needs Meson and glslang)
--target NAMEBuilds one target
--reconfigureRuns CMake's configure step again

JOBS in the environment sets the number of parallel compilations.

Usage

xvalkyrie is the window: the game library, the options, and the log of the title that is running. It starts xvboot for each title, which is also the command line.

xvalkyrie [FILE|FOLDER]              open the window, and a title if one is given
xvboot exec TITLE [--allow-missing] [--trace] [--mute] [--backend d3d11|vulkan]

A title is an executable or the folder of an unpacked title (the one with MicrosoftGame.config or AppxManifest.xml). Packages (.xvc) are listed but cannot be opened: XValkyrie decrypts nothing.

exec runs the title's code in the xvboot process with no sandbox. Only run what you trust.

The commands that look at a title without running it print JSON:

CommandPrints
xvboot inspect FILEPE headers and directories
xvboot assess FILEThe imports by kind, and the console the build is for
xvboot bind FILEWhere each import would be bound
xvboot map FILE [--base HEX]The layout of the mapped image
xvboot properties FILEAll of the above in one report
xvboot inspect-config FILEA MicrosoftGame.config
xvboot inspect-manifest FILEAn AppxManifest.xml
xvboot inspect-package FILEThe header of an XVD/XVC package
xvboot modules durango|scarlettThe console modules and functions implemented
xvboot shader-probe [--compile]For each line of machine code words on the input, what stops its translation

In the window, Options > Input binds the gamepad to keys or to the host's gamepad, Options > Graphics picks the backend and what F11 does, Options > Console sets the signed-in user and, optionally, the system storage: a folder with the console's own apps, each unpacked in a folder of its own. With one, apps find the packages they depend on there and File > Boot from Menu starts the dashboard, as far as it gets (see the roadmap). Options > Game Libraries sets the folders that are scanned for titles. Settings are kept in %APPDATA%\xvalkyrie\config.ini, logs in logs next to it, one file per session and per title.

Development switches are environment variables, described where they are used in docs/research: XV_D3D_TRACE, XV_D3D_DEBUG, XV_D3D_PROBE, XV_SHADER_WHY, XV_SHADER_CODE and others.

Tools

ScriptWhat it writes
tools/status.pyThe status block above, docs/STATUS.md and docs/img/status.svg
tools/rdna_ops.pyThe instruction table of the shader translator, from LLVM's disassembler
tools/import_xbdepends.pyThe lists of system DLLs and APIs a console title may use

FAQ

Is this an emulator? No. Nothing is emulated at the level of the hardware. A title's code runs on the host's CPU as it is, and the console's libraries are reimplemented.

Can I play games with it? Not yet. See the status above.

Does it run on Linux? No. It relies on Windows for the part of the console's system that is Windows.

Where do I get games or keys? Not here. XValkyrie includes no games, keys, firmware or SDK files, links to none, and cannot decrypt retail packages.

Contributing

Issues and pull requests are welcome; CONTRIBUTING.md has the ground rules. Say where information comes from: guessed offsets, ordinals or ABIs are not merged.

XValkyrie is not affiliated with or endorsed by Microsoft. Xbox, Xbox One and Xbox Series X|S are trademarks of Microsoft Corporation. The project is written from public documentation, public source code and the observed behaviour of software its authors own.

License

Copyright (C) 2026 Sammwy.

XValkyrie is free software under the GNU General Public License, version 3: you may use, change and share it, and what you build from it has to stay under the same license and keep its notices. It comes with no warranty. Third-party components keep their own licenses, listed in THIRD-PARTY.md.

Similar Projects

Discover other similar projects and AI models.

RepositoryC++
PlutonusDev/OpenEra

An open-source compatibility layer and runtime environment for running Xbox One / Series X|S (Era / GameCore) titles natively on Windows.

233
Nov 28, 2026
RepositoryC
xemu-project/xemu

Original Xbox Emulator for Windows, macOS, and Linux (Active Development)

4.3k
Nov 23, 2026
RepositoryPython
R0Y00/Xbox2Windows

Static recompilation research for Xbox Series X|S software on x64 Windows, with source-built CPU and GPU tests. Full-game startup is unverified.

2.0k
Nov 27, 2026
RepositoryC++
shadps4-emu/shadPS4

PlayStation 4 emulator for Windows, Linux, macOS and FreeBSD written in C++

34.4k
Nov 28, 2026
RepositoryC++
RPCS3/rpcs3

PlayStation 3 emulator and debugger

20.5k
Nov 29, 2026
RepositoryC++
PCSX2/pcsx2

PCSX2 - The Playstation 2 Emulator

16.2k
Nov 29, 2026
RepositoryC++
dolphin-emu/dolphin

Dolphin is a GameCube / Wii emulator, allowing you to play games for these two platforms on PC with improvements.

15.9k
Nov 22, 2026
RepositoryC++
cemu-project/Cemu

Cemu - Wii U emulator

10.3k
Nov 20, 2026
RepositoryC++
xenia-project/xenia

Xbox 360 Emulator Research Project

9.9k
Feb 18, 2026