Skip to content
purelogiccodePublic

About

XGrid is a desktop Original Xbox + Chihiro emulator with extensive compatibility, graphic filters, and support for ISO/XISO, CHD, CCI, and ZArchive files. Builds are available for Windows (arm64 and x64), Linux (arm64 and x64), and macOS (Apple Silicon).

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

230 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XGrid — Original Xbox and Chihiro emulator

XGrid

Original Xbox emulation, with a desktop shell that feels at home.
A custom enhanced and patched emulator core, originally derived from xemu 0.8.139, with a modern Avalonia application.

CI Version: 0.3.0 alpha License: GPL-2.0-or-later Status: alpha

.NET 11 Avalonia 12.2 Core: XGrid custom / xemu 0.8.139 lineage Platforms: Windows, Linux

GitHub stars GitHub forks Open issues Documentation


XGrid is a desktop Xbox emulator built around a custom, enhanced, and patched core. The core began as xemu 0.8.139, but it now lives in this repository as part of XGrid and will evolve separately from the original xemu codebase. It is not a stock xemu build, and future XGrid core changes are not tied to upstream xemu releases.

Two XGrid instances can also play Xbox System Link titles over the internet through a lobby room, with local DHCP/ARP bridging and direct-or-relay UDP transport. A two-cabinet Chihiro link uses the same lobby room flow over the TCP relay. See Network play.

The emulator itself — QEMU TCG, the NV2A and its renderers, MCPX, the APU/ACI, IDE, USB and the rest of the Xbox — started from xemu and QEMU. XGrid adds the library, settings, save states, real-time compressed media, per-title configuration, diagnostics and packaging that turn a core into a comfortable application.

XGrid is not affiliated with Microsoft or the xemu project. It ships no BIOS, EEPROM, hard-disk image or game data. You must supply your own legally obtained files.

Contents: Why XGrid? · At a glance · The XGrid core · Requirements · Quick start · Keyboard · Media · Platforms · Documentation · Build · Credits · License

Why XGrid?

  • A custom core, not a wrapper. XGrid owns a patched and enhanced core that began from xemu 0.8.139. It is maintained here and will diverge as the project grows.
  • A real desktop application. Library-first layout with an automatic game view, plus Settings, Activity and About pages, folder scanning, an Xbox/Chihiro platform filter, search, favorites, play time, cover art and an interface localized in nine languages.
  • Play compressed media directly. ISO/XISO, CHD, CCI and ZArchive discs are read on demand. There is no extraction or conversion step.
  • Retail images just work. Optimized XISOs and full Redump images both boot; the game partition is detected and mapped to LBA 0 automatically.
  • Save states that belong to the machine. Four QEMU/xemu slots plus an optional automatic session snapshot that resumes when Power On / Off starts the dashboard.
  • Memory cards and save data. Attach or create 8 MB FATX memory units in controller expansion slots, then browse, import/export, organize and delete saves from the shell.
  • Arcade support. Sega Chihiro netboot images and direct GD-ROM sources with cabinet settings, linked cabinets, card readers, light guns and force feedback.
  • A picture the core owns. The emulator renders, filters and overlays every frame. The shell never copies, filters or redraws the console picture.
  • Per-title settings. Guest memory, renderer, texture filtering and the presentation filter can differ for each game.
  • Built for tinkering. Command-line overrides, headless runs, JSON reports, rolling logs and a searchable Activity page.

At a glance

Area What you get
Core XGrid custom core, originally xemu 0.8.139 / QEMU 10.2 TCG i386; NV2A OpenGL/Vulkan/NULL, MCPX, APU/DSP, ACI, IDE/ATAPI, USB/OHCI, SMBus
Shell Avalonia 12.2 desktop app: Library, automatic game view, Settings, Activity, About
Hosting In-process xgrid_core.dll on Windows; separate process on Linux and as the Windows fallback, with a local control channel for playback, save states and disc changes
Media ISO/XISO, CHD, CCI, ZArchive (entry form or file tree), Chihiro netboot .bin and GD-ROM sources, raw/qcow2 HDD
Arcade Sega Chihiro media board, DIMM, JVS, card readers, force feedback, two-to-four linked cabinets
Display Core-owned picture (embedded window on Windows, own SDL window on Linux), nearest/bilinear/scanline/CRT filters, colour adjustments, integer scaling and overscan, resolution scale, aspect/fit, fullscreen, FPS overlay
Recording Core-side H.264 MP4 recording (MJPEG AVI fallback), in-memory instant replay and .xgin input recording/replay selected from the shell; recordings include the core's mixed stereo audio
Input Keyboard and XInput mapping for players 1-4, radial dead zones, trigger threshold, Y inversion, stick swap and shell-pad rumble
Save data Xbox memory units (XMU) in controller expansion slots: attach, create, eject, browse, import/export, create folders, rename and delete saves
Quality of life Four save-state slots, session resume, Xbox/Chihiro library filter, cached library startup, multiple library roots, favorites, play time, per-title overrides, EEPROM region/language/video profiles, screenshots, video recording, accent themes
Patches User-supplied per-title JSON patch files matched by XBE title ID and optional certificate version
Network play Two-player Xbox System Link through the lobby with DHCP/ARP bridging, direct NAT punch-through and UDP relay fallback; also a two-cabinet Chihiro link over the lobby TCP relay
Diagnostics Serilog rolling logs, Activity page, warning/error bug reports, optional usage statistics, GitHub update check with verified download
Automation Session overrides and headless runs with JSON reports for CI and benchmarks
Platforms Windows 10/11 x64 and ARM64 (installer and portable), Linux x64 and ARM64 (archives and AppImages), macOS Apple Silicon (DMG).

The XGrid core

The core lives under xemu/, a directory name kept for provenance. It is not a pristine upstream checkout: it is the XGrid-maintained core, and it is free to evolve independently from xemu from this point forward.

Starting from the xemu 0.8.139 baseline, XGrid has changed the core in these areas:

Area Stock xemu 0.8.139 XGrid core
Hosting Standalone xemu with its own SDL window Same standalone binary plus an in-process xgrid_core.dll with a C ABI for start/stop, embedding, picture settings, playback, disc changes and snapshots; a token-authenticated loopback control channel gives the standalone process the same playback/snapshot/disc operations
Disc images ISO/XISO and raw block images ISO/XISO, CHD, CCI and ZArchive, with one XDVDFS detector that maps optimized XISO and retail XGD partitions to LBA 0
Playback No host-facing pause, step or speed API Shell-driven pause/resume, single-frame step, and 1–8× fast-forward that scales the guest virtual clock and vblank pace together
Save states Core snapshot UI backed by the HDD image The same QEMU snapshot machinery exposed through the ABI; raw-HDD and Chihiro launches use a dedicated qcow2 snapshot store
Picture Renderer output with no host filter or overlay API A core-owned chain of 13 presentation filters (nearest through FSR 1.0), final-blit brightness/contrast/saturation/gamma, integer scaling and overscan, FPS overlay, frame-rate cap and frame skip, core-side screenshots, core-side H.264 MP4 recording with instant replay, and a headless frame sink
Input SDL keyboard and gamepad Plus a four-port shared-memory pad sink with a rumble return path for the shell; Chihiro JVS, light guns, card readers and force feedback
Memory cards No host-facing memory-unit API XMU attach/detach/list through the ABI and control channel; [input.peripherals.*] restores cards at launch
Tooling No host memory API RAM-only guest memory read/write and a polling change hash through the in-process ABI
Machines Xbox Xbox plus the Sega Chihiro media board, DIMM, JVS, card readers, drive boards and netboard
EEPROM profile Fixed North America / NTSC-M generation Region, language and video-standard profile applied to the existing EEPROM; the shell resolves auto region from the disc's XBE certificate
Renderers OpenGL, Vulkan and NULL Plus a Direct3D 11/HLSL backend for Windows development; release cores are built without it
Audio QEMU audio backends Plus DirectSound device GUID selection and an -audio-drivers probe
Build Upstream Meson options xgrid_vulkan/xgrid_d3d11 switches, the in-process DLL target, Windows ARM64 build support, vendored libchdr/libCCI and dependency locks

The delta is recorded as 35 patches in xemu/xemu-patches/; XGrid-native modules live in xemu/xgrid-core/. It changes 56 existing source/build files (about +6,170/-205 lines) and adds 34 Chihiro files, 24 Direct3D 11/HLSL files and 97 files under xgrid-core/, including the vendored libchdr, libCCI and stb_image_write trees.

The file-level comparison with pristine xemu 0.8.139 remains available in xemu baseline differences. It records where XGrid started; it is no longer a promise that XGrid will track upstream release-for-release.

Requirements

XGrid ships a per-user Windows installer, portable archives for Windows and Linux, Linux AppImages and a macOS Apple Silicon DMG. The 0.3.0 release bundles a native core on every supported platform.

Host

Host Requirement
OS Windows 10/11 x64 or ARM64; Linux x64 or ARM64; macOS 12+ on Apple Silicon. macOS Intel is not supported.
CPU A modern x64 or ARM64 processor; QEMU TCG is CPU-intensive
GPU OpenGL-capable GPU with current drivers; Vulkan only when the core was built with it
RAM 4 GB or more recommended (the guest uses 64 MB, 128 MB or experimental 256 MB)
Storage Space for the app, firmware, HDD image and your disc images

Original Xbox: required files

XGrid ships no Microsoft firmware, EEPROM, HDD image or game data. A normal Xbox launch needs all four console files below. The disc is optional only when you want to boot the dashboard; playing a game also needs a disc image.

File Typical name Size Required Purpose
BIOS / flash ROM Complex_4627.bin 256 KB, 512 KB or 1 MB Yes Retail Xbox BIOS
MCPX boot ROM mcpx_1.0.bin 512 bytes Yes First-stage boot ROM
EEPROM eeprom.bin 256 bytes Yes Console settings and EEPROM state
Hard-disk image xbox_hdd.qcow2 or .raw varies Yes Dashboard, saves and save-state storage
Disc image .iso, .xiso, .chd, .cci, .zar varies For games The Xbox game disc

Configure the four console files in Settings → System (the first-run wizard also asks for them). If a path is empty, XGrid looks for the file beside the emulator. Use a matched BIOS, EEPROM and HDD set from the same console; a mismatched set can fail to boot or mount saves. Keep AV pack at HDTV: some titles, including Metal Slug 5, do not produce a picture with VGA selected.

Sega Chihiro: required files

A Chihiro launch uses the Chihiro firmware and a game image instead of the Xbox HDD, EEPROM and MCPX boot ROM. Put all required firmware files in one folder and select it in Settings → System → Sega Chihiro.

File Typical name Size Required Purpose
Chihiro Xbox BIOS chihiro_xbox_bios.bin 512 KB Yes Chihiro Xbox BIOS
Media-board flash fpr21042_m29w160et.bin 2 MB Yes SEGABOOT media board
QC board EEPROM ic10_g24lc64.bin 8 KB Yes QC board settings
Baseboard EEPROM ic11_24lc024.bin 128 bytes Yes Cabinet settings and saves
SC board EEPROM pc20_g24lc64.bin 8 KB Yes SC board settings
Network firmware ver1305.bin 1 MiB Optional Network titles and linked cabinets
Game image a .bin, .cue, .chd or .zip varies Yes Chihiro netboot or GD-ROM source

XGrid boots Chihiro FATX .bin netboot images and direct GD-ROM sources. Choose File → Open Chihiro GD-ROM... for a cue/bin set, CHD, ZIP or XBOXOG ISO; the first launch prepares and caches the FATX image, and later launches reuse it. A GD-ROM needs its matching MAME key ZIP, asked for once and then remembered. The Settings converter remains available for standalone output. Without ver1305.bin, network titles report the older board version; MJ2/MJ3, OutRun 2 SP and Gundam need it. See the Sega Chihiro guide for setup, cabinet, light-gun and linked-cabinet details.

Linux

The Linux archive bundles the standalone core. Its runtime packages are listed in the release notes and Installation.

Quick start

  1. Download the latest release. Windows users can run XGrid-Setup-<arch>.exe or extract the portable zip. Linux users can use the tar.gz or AppImage; macOS users open the DMG.
  2. Install or extract. The Windows installer is per-user. The archives are portable and need no .NET runtime.
  3. Run XGrid (XGrid.exe on Windows, or the app in Applications on macOS).
  4. Finish the first-run wizard with your BIOS, EEPROM and HDD image, then add a folder of games.
  5. Pick a game in Library, or use Emulation → Power On / Off (F5) to boot the dashboard.

For a Chihiro game, first set the firmware folder in Settings → System → Sega Chihiro. Add a netboot .bin to the Library, or use File → Open Chihiro GD-ROM... for a cue/bin set, CHD, ZIP or XBOXOG ISO. A Chihiro launch does not use the Xbox HDD, EEPROM or MCPX files.

If the releases page does not have a packaged build yet, use Build from source.

Full walkthrough: Quick start · Installation · First boot.

Verify the published checksum and only run archives from the official release page. See Installation.

Keyboard essentials

Key Action
F5 Power on / off
P Pause / resume
F10 Step one frame while paused
F6 / F7 Quick save / quick load
F8 Screenshot
F9 Start / stop video recording
Ctrl+F9 Save instant replay
F11 Toggle fullscreen
Space Toggle 4× fast-forward
Ctrl+O Open or swap a disc
Ctrl+E Eject the disc
Ctrl+S Save settings (Settings page)
Esc Fullscreen: pause, then close on the next press

Default player-1 controls: A/S/D/F = A/B/X/Y, arrows = D-pad, Enter = Start, Backspace = Back, Q/E = White/Black, Z/C = triggers. Space is reserved for fast-forward. Everything else is remappable in Settings → Input.

Supported media

Format Support Notes
ISO / XISO Yes Optimized XISO or full Redump; game partition found automatically
CHD Yes Compressed MAME CHD, decoded on demand
CCI Yes Single or split .1.cci / .2.cci sets
ZArchive (.zar) Yes Entry-form archives and synthesized file-tree archives
Chihiro netboot (.bin) Yes Sega Chihiro FATX netboot images
Chihiro GD-ROM (.cue/.chd/.zip) Yes Prepared and cached on first launch; the matching MAME key ZIP is asked for once
XBE Inspect only A loose executable must be wrapped in a disc image
HDD Yes Raw or qcow2; dashboard and snapshot storage

See Media formats for the full matrix and conversion notes.

Platform support

Platform Status
Windows 10/11 x64 and ARM64 Full shell integration: in-process core, embedded picture, save states, pause/step, fast-forward, live disc swap through the local control channel, mapped pads
Linux x64 and ARM64 Portable bundle and AppImage carry the standalone core. The core presents in its own window; shell save states, pause/step and disc swap are not available
macOS Apple Silicon DMG with the standalone core in its own SDL window; shell save states, pause/step and disc swap are not available

XGrid is alpha software. The core is mature; the shell, media drivers and compatibility work are still evolving. Read Compatibility for the supported surface.

XGrid is donationware: every feature works without donating. The optional banner disappears after a confirmed donation; see Supporting XGrid.

Documentation

The full manual is a multi-page Docsify site in docs/. Open docs/index.html or serve the folder with a static server.

Section Start here
Getting started Quick start · Requirements · Installation · First boot
Using XGrid Library · Playing games · Network play · Settings · Display · Input · Audio · Save states · Media
Advanced Sega Chihiro · Chihiro controls · Command line and headless · Logs and diagnostics · Accessibility · Supporting XGrid
Reference Architecture · xemu baseline differences · Configuration · Shortcuts · Compatibility · Troubleshooting · FAQ
Development Building · Repository layout · Native core · Core lineage and upstream · Updating from upstream · Native dependencies · Quality gates · Contributing
Legal Licensing · Privacy · Porting
Project Release notes · Security policy · Issues

Preview the documentation locally with any static server:

python -m http.server 8000 -d docs
# open http://localhost:8000

A shorter, GitHub-wiki-ready set of pages lives in wiki/.

Build from source

# Shell and tests
dotnet restore XGrid.sln
dotnet build XGrid.sln -c Release --no-restore --nologo
dotnet test XGrid.sln -c Release --nologo --no-build

# Native core (Windows + MSYS2 MINGW64)
pwsh -File scripts/build-native-xemu.ps1

# Native core (Linux)
bash scripts/build-native-xemu.sh

# Run
dotnet run --project src/XGrid.Frontend.Avalonia

The Windows core build produces xemu/dist/xemu.exe, xgrid_core.dll and the runtime DLLs. Linux produces xemu/dist/xemu and xgrid-core.json. The xemu/ path is retained for provenance; this is the XGrid-maintained core. See Building from source for the toolchain and Quality gates for the checks.

To build release archives:

pwsh -File scripts/package.ps1
pwsh -File scripts/package-verify.ps1

Contributing and security

Please do not commit firmware, BIOS images, EEPROMs, HDD images or game data.

Credits

XGrid's core began as xemu 0.8.139. We thank every developer who built the xemu tree that made XGrid possible, and the QEMU project beneath it.

The following people contributed code to xemu's Xbox hardware, xemu-specific host/UI paths or its XBE support through the 0.8.139 release. Names are shown with GitHub handles where one is known; “Fabxx” also appears in the history as “Revix”:

7oxicshadow · Alexandre Bouvier (@abouvier) · Antonio Abbatangelo (@antangelo) · CakeLancelot · Camden Smallwood (@camden-smallwood) · coldhex · Dalai (@Dalai-) · Daniel Cook (@DCFUKSURMOM) · Darren (@DiscoStarslayer) · DaveX (@0DaveX) · Dustin Holden (@LoveMHz) · Erik Abair (@abaire) · espes · Fabxx (@Fabxx) · Fred Hallock (@faha223) · haxar · Igor Leonovich (@igorleonovich) · Jannik Vogel (@JayFoxRox) · Jason (@theboy181) · jessedye · Josef Šimánek (@simi) · jyetcv · Logan Stromberg (@lostromb) · Lucas Eriksson (@dracc) · Luke Usher (@LukeUsher) · Lynne (@cyanreg) · Mason Thompson (@MasonT8198) · Matt Borgerson (@mborgerson) · Mike Davis (@Ernegien) · NZJenkins · octopoulos · oltolm · RageXbox · Reedzit · Ryan Wendland (@Ryzee119) · Shiralyn (@ShiralynDev) · Silent (@CookiePLMonster) · smx (@smx-smx) · Stanislav Motylkov (@binarymaster) · Stefan Schmidt (@thrimbor) · Stian Eklund (@stianeklund) · Trent Seed (@TrentSeed) · Voxel9 · Wilhelm Kovatch (@wilkovatch) · wutno (@GXTX) · Yuvi (@Yuvi-App).

We also thank the wider xemu community: the testers, compatibility reporters, documentation contributors and everyone who kept the project moving before the XGrid fork.

Sega Chihiro lineage

The direct source of XGrid's Chihiro machine is the xemu Chihiro fork (Playtest-v2) snapshot in References2/xemu-Playtest-v2. The XPSemu Chihiro alpha 2 fork was used as a cross-check and for later fixes. We thank:

  • Tovarichtch for the xemu Chihiro fork (Playtest-v2) that supplied the machine.
  • Réda Chérif-Touil, whose copyright is carried by the Chihiro source files.
  • espes and Matt Borgerson, whose earlier QEMU Chihiro, USB and Xbox code is carried in the same source files.
  • tattoohanz for maintaining the XPSemu Chihiro fork used as a cross-check.
  • ZiZc3 for XPSemu, the PS5 port on which that fork is built, and everyone in XPSemu's credits.
  • The MAME contributors whose tables and routines are used by the Chihiro devices: Samuele Zannoli, R. Belmont, ElSemi, David Haywood, Angelo Salese, Olivier Galibert and MetalliC. The DES routines come from Olivier Galibert's MAME naomigd.cpp (BSD-3-Clause), and the PIC tables come from naomi.cpp.

Xemu itself is built on QEMU. We thank Fabrice Bellard and the entire QEMU team, past and present. The full QEMU contributor history is maintained at github.com/qemu/qemu.

License

XGrid's own source is GPL-2.0-or-later. The XGrid core began from the xemu/QEMU tree and keeps those original GPL, LGPL and MIT notices. Third-party components and ported modules are recorded in THIRD_PARTY_NOTICES.md. See Licensing.

XGrid is an independent project. Xbox and Microsoft are trademarks of Microsoft Corporation.

About

XGrid is a desktop Original Xbox + Chihiro emulator with extensive compatibility, graphic filters, and support for ISO/XISO, CHD, CCI, and ZArchive files. Builds are available for Windows (arm64 and x64), Linux (arm64 and x64), and macOS (Apple Silicon).

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages