Xenia Edge
Xenia Edge emulates Microsoft Xbox 360 and Microsoft Xbox. It reads 10 files, 4 of them required: without a required file it does not start games. A required file is needed only by the machines that use it. Each file below cites the line of source code that reads it.
Run on its own, the app reads its files from this folder:
%USERPROFILE%/Documents/Xenia/
portable.txt beside the executable, the portable flag or the storage_root setting replaces it.
Source: src/, src/
$XDG_DATA_HOME/Xenia/, else ~/.local/share/Xenia/
portable.txt beside the executable, the portable flag or the storage_root setting replaces it.
Source: src/, src/
$XDG_DATA_HOME/Xenia/, else ~/.local/share/Xenia/
portable.txt beside the executable, the portable flag or the storage_root setting replaces it.
Source: src/, src/
About this profile
Install this emulator's files
For Xenia Edge inside RetroArch, Batocera or another setup. The installer finds the setup and its BIOS folder, then downloads only the files this emulator reads there and checks each one.
Open Start. Type PowerShell, press Enter. Click Copy. Right-click to paste. Press Enter.
&([scriptblock]::Create((irm https://abdess.github.io/retrobios/i.ps1))) --emulator xenia-edgePress Cmd+Space. Type Terminal, press Return. Click Copy. Press Cmd+V. Press Return.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator xenia-edgeOpen a terminal, often with Ctrl+Alt+T. Click Copy. Press Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator xenia-edgeHold power, pick Switch to Desktop. Open Konsole. Click Copy. Press Ctrl+Shift+V. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator xenia-edgeOpen a terminal on the device. Or connect from a computer with SSH, a terminal over the network. Paste the line. Press Enter.
curl -fsSL https://abdess.github.io/retrobios/i | sh -s -- --emulator xenia-edgeTechnical notes
Xbox 360 emulator forked from Xenia Canary, with a wxWidgets front end, a
game library, and Direct3D 12, Vulkan and Metal backends. Releases are tagged
by short commit on the edge branch and ship as xenia_edge_linux.AppImage,
xenia_edge_macos.dmg and xenia_edge_windows.zip. ES-DE finds it through the
XENIA-EDGE rule and runs xenia_edge <rom>. RetroDECK unpacks the AppImage
into a xenia-edge component and executes bin/xenia_edge.
The libretro core xenia_edge_libretro is built from libretro/xenia-edge-libretro
on git.libretro.com (branch libretro, CORENAME xenia_edge in .gitlab-ci.yml),
mirrored as WizzardSK/xenia-libretro on GitHub. It carries the xenia-edge
tree merged from edge at 074d3f08, the release named in upstream.version and
reported as library_version (libretro/CMakeLists.txt:74-78,
libretro/). The core is one shared library linked from
the emulator's static libraries, without the wxWidgets app
(libretro/CMakeLists.txt:1-13, 104-129), and the top-level CMakeLists.txt
defines XENIA_LIBRETRO for every target of the tree. Everything it keeps
is under <system>/Xenia-Edge: storage root, content, cache, xenia.log, and
xbl_profilename.txt, which it creates with "Player" and reads to name the
profile it creates (libretro/, 1615-1648). The frame
rate unlock list is compiled into the core and written there when missing
(libretro/CMakeLists.txt:15-33, libretro/), and the
bundled patches of the running title are written to Xenia-Edge/patches with
their core option state before Xenia reads that folder at boot
(libretro/libretro.cpp:794-801). Apart from XeFu under Xenia-Edge/xefu, it
reads no firmware, font or runtime from disk. Vulkan comes from the frontend's instance
(libretro/), Direct3D 12 runs on the system
runtime with the D3D12Core.dll check of d3d12_provider.cc compiled out under
XENIA_LIBRETRO, and the download prompts for missing runtimes are stubbed
out (libretro/).
The Windows build embeds bin/x64/dxil.dll of the DXC release as a resource
(libretro/CMakeLists.txt:35-51, .ci/) and writes
it to Xenia-Edge/D3D12/dxil.dll when the copy there differs in size, then
points d3d12_runtime_path at that folder, where the D3D12 provider loads it
by full path (libretro/, 1654-1661).
An Xbox 360 game reads no system file. xboxkrnl, xam and xbdm are C++ HLE modules registered at startup (src/xenia/emulator.cc:437-446), the XEX2 retail and devkit AES keys are constant arrays in the binary (src/xenia/cpu/xex_module.cc:64-69), and every XConfig setting is synthesised from cvars and constants by BuildSetting rather than read from a flash image. The console MAC address is derived from the signed-in profile or the machine id behind a fixed vendor prefix, and is drawn at random only when neither exists (src/xenia/kernel/xconfig.cc:99-270, 283-318). A launched folder that holds its own xam.xex or $flash_xam.xex is that title's flash (src/xenia/emulator.cc:865-874, 2512-2549). That is a companion module inside the dump the user launched, not a host-side lookup.
System files are optional. The installed flash, system extended and system
auxiliary partitions are read from system/flash, system/sysext and
system/sysaux under the storage root when those folders exist, and the flash
becomes \SystemRoot and media:, where titles find the system fonts
(src/xenia/emulator.h:98-102, src/xenia/emulator.cc:2657-2677,
src/xenia/emulator.cc:2512-2521). The libretro core mounts the same folders
under Xenia-Edge/system but has no installer. They hold dash.xex, which Start
Dashboard runs (src/), bootanim.xex,
played before it (src/xenia/emulator.cc:2551-2560), and the
xna_titlelauncher.xex every indie game runs through
(src/xenia/emulator.cc:1109-1157). The standalone's Tools > Install System
Files builds them from a USB system update zip, downloaded from Microsoft or
picked by the user, and fills a flash font the update only patches with one
built from the bundled fonts (src/,
src/,
src/).
Original Xbox games, as an .xbe, a disc image whose root holds one or an Xbox
Original package, start through XeFu, the console's own backward
compatibility emulator (src/xenia/emulator.cc:794-821). Its files come from
the Compatibility folder of an Xbox 360 hard drive and go in the xefu folder
under the storage root, or the folder the xefu_path cvar names
(src/xenia/emulator.cc:171-185, 897-899). When xbox.xex is missing the
launch fails, the folder is created and the window names the missing file
(src/xenia/emulator.cc:1067-1080, src/).
The fork's data ships inside the executable. assets/font, the Inter UI font
and the M PLUS 1p Japanese font, and assets/icon are linked in by xe_embed_binary_assets and the 33
assets/locale catalogues are compiled to .mo at configure time and bundled,
with no .mo written next to the binary (src/xenia/ui/CMakeLists.txt:51-84).
The UI font is read from that buffer with AddFontFromMemoryTTF
(src/xenia/ui/imgui_drawer.cc:375-385), Japanese glyphs are merged from the
M PLUS 1p buffer on every platform (src/xenia/ui/imgui_drawer.cc:481-498),
and xe::EmbeddedBundle decodes the SDL controller
mappings (src/), the canary and edge game patches
(src/xenia/patcher/patch_db.cc:352-366), the game-compatibility master.json
(src/) and the x360db games.json (src/).
Three cvars accept a file and name none by default, so nothing is expected at
a fixed path: custom_font_path falls back to the embedded Inter
(src/xenia/ui/imgui_drawer.cc:39-44, 361-394), mappings_file to the embedded controller DB
(src/, 237-241), achievement_sound_path leaves the
achievement sound silent (src/xenia/ui/audio_helper.cc:21-24, 38-53). Only when
the embedded Inter fails to load does the UI font come from the OS, tahoma.ttf
out of the Windows fonts folder or the fontconfig sans-serif match on Linux,
then the ProggyTiny font compiled into the binary
(src/xenia/ui/imgui_drawer.cc:396-479, 508-521).
Everything under the storage root is written by the emulator or dropped in by
the user: xenia-edge.config.toml and per-game .config.toml (src/xenia/config.cc:47-50),
patches/*.patch.toml read on top of the embedded set (src/xenia/emulator.cc:430,
src/xenia/patcher/patch_db.cc:39-57, 65) and listed by the patches panel
beside the bundled ones (src/xenia/patcher/patch_db.cc:423-444),
plugins/<title id>/plugins.toml behind allow_plugins,
which defaults false (src/xenia/patcher/plugin_loader.cc:16-38, 58-73), content
(src/), scratch, cache0, cache1, cache and mu
(src/xenia/emulator.cc:1935-2003). portable.txt next to the executable
keeps the storage root there instead of the user folder
(src/).
On Windows the Direct3D 12 and Vulkan runtimes are not in the release zip,
which holds only the build output (.github/). The
emulator looks for them in D3D12/ and Vulkan/ beside the executable and
offers to download pinned archives from Microsoft and LunarG, gated by
d3d12_install_missing_runtime, vulkan_install_missing_loader and
update_vc_runtime, all default true (src/). Each
archive is checked against a SHA-256 held in the source before its members
are extracted, so the hash covers the archive and never the extracted DLL,
which is why no hash is declared on the entries below. The Linux and macOS
builds need none of them: MoltenVK is statically linked and the Vulkan loader
comes from the system (src/xenia/ui/vulkan/vulkan_instance.cc:66-72, 81-83).
10 files: 4 required, 6 optional.
In this collection: 8 in repo, 0 missing and 2 unsourceable.
Required
Section titled “Required”| File | Status |
|---|---|
dxil.dllDXIL signer and validator from DirectX Shader Compiler 1.9.2602.24
| required for Microsoft Xbox 360 in repo standalone |
D3D12Core.dllDirectX 12 Agility SDK 1.619.3 runtime
| required for Microsoft Xbox 360 in repo standalone |
xbox.xexXeFu launcher from the Compatibility folder of an Xbox 360 hard drive
Source | required for Microsoft Xbox in repo |
xefu/Compatibility folder of an Xbox 360 hard drive: xbox.xex, the xefu*.xex builds and xefutitle*.xex
| required for Microsoft Xbox in repo directory |
Optional
Section titled “Optional”| File | Status |
|---|---|
D3D12SDKLayers.dllDirect3D 12 debug layer from Agility SDK 1.619.3
| in repo standalone |
vulkan-1.dllKhronos Vulkan loader 1.4.350.0 for the Vulkan backend on Windows
| in repo standalone |
vc_redist.x64.exeMicrosoft Visual C++ 2015-2022 redistributable installer
Validation and source | in repo standalone |
SystemUpdate_17559_USB.zipXbox 360 USB system update 17559
Hashes and source
| in repo standalone |
system/flash/Flash partition of an installed system update: dash.xex, bootanim.xex, xam.xex and the system fonts
| unsourceable directory |
system/sysext/System extended partition of an installed system update, with system.manifest and xna_titlelauncher.xex
Source | unsourceable directory |
Next steps
Section titled “Next steps”- Get the files, for the setup in use
- Every system, and the files each one needs
- When a game does not start