Cxbx-Reloaded emulates Microsoft Xbox and Sega Chihiro. It reads 11 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.
The app reads its files from this folder:
On Windows: %APPDATA%/Cxbx-Reloaded/
Answering Yes to the portable mode question on first run puts it in the folder of cxbx.exe instead, and the settings can name a custom location.
Windows x86 emulator running Xbox and Sega Chihiro titles. The kernel is
reimplemented and XBE code executes natively, so no Xbox flash ROM or MCPX
image is read. The flash window answers the two addresses titles poll with
constants, hardware revision 1.6 among them, and the MCPX device is a PCI stub
whose revision comes from the hardware model. A title is opened as an XBE,
either from an unpacked directory or from an .iso or .xiso mounted to a drive
letter, in which case the default.xbe of the mount is what gets opened.
ref: src/devices/x86/EmuX86.cpp:162-180,
src/devices/MCPXDevice.cpp:36-70,
src/devices/Xbox.cpp:48-58,
src/devices/Xbox.cpp:132-155,
src/gui/WndMain.cpp:89-96,
src/gui/WndMain.cpp:2252-2272
Checked for existence, opened, and rejected unless it is exactly 2 MB. Each failure ends the run with a message naming the file and the EmuMediaBoard folder. Read once, to write out the two SEGABOOT halves when they are absent. It is also the target a Chihiro title returns to when it reboots with an empty launch path.
Memory mapped read/write at JVS setup, and the run ends when it cannot be opened. Byte 0x1F00 is dereferenced straight after loading, which is the floor the size carries: it holds the board region and is rewritten to USA, export or Japan when the running title's BootID rejects the current value. Titles read it through JvsFirmwareDownload and overwrite it through JvsFirmwareUpload.
Memory mapped read/write at JVS setup, and the run ends when it cannot be opened. Served to titles through JvsScFirmwareDownload and rewritten through JvsScFirmwareUpload.
Memory mapped read/write at JVS setup, and the run ends when it cannot be opened. Writes from JvsEEPROM_Write are synced back to disk immediately, so cabinet settings a title stores persist across runs.
The only one of the four JVS images the emulator will produce itself: when the file is missing it writes 128 KB of zeros and maps that, so a fresh board starts blank. Titles keep bookkeeping and high scores here through JvsBACKUP_Read and JvsBACKUP_Write.
Not collected yet: written by the emulator as 128 KB of zeros, no canonical file (files not collected yet)
Written by the emulator from the first megabyte of fpr21042_m29w160et.bin when either half is missing, and mounted as the mbrom0 device. Supplying it does not remove the need for the ROM, whose existence is checked before the extraction block is reached.
Written from the second megabyte of fpr21042_m29w160et.bin under the same condition as the old half, mounted as the mbrom1 device, and launched as the XBE that boots the title.
Read from the shell partition of the emulated disk when a title reboots with an empty launch path and when the Open Dashboard menu entry is used. Its absence is handled as the console handles it, with the unrecoverable error screen and the LED sequence that goes with it, the code carrying the dashboard's own reason when the launch data page supplies one. Titles run without it.
Opened at startup and mapped read/write. The file is created and filled with defaults when it does not exist, and a file that is not 256 bytes ends the run. Section checksums are recomputed on every load. The encrypted section is read as plaintext: the stored checksum is compared with the HMAC-SHA1 of the confounder, hard disk key and game region as they sit in the file, keyed with the EEPROM key of keys.bin, so a retail dump has to be RC4-decrypted first, which leaves the checksum unchanged. The hard disk key is taken from it, and the game region it carries becomes the factory region. The GUI exposes an editor over the same file.
Two 16 byte keys read in order, the EEPROM key then the certificate key, as produced by dump-xbox. A file of any other length is refused with a warning naming the expected length, and an absent file only costs the ability to read save data from a real console. The certificate key derives the LAN, signature and alternate signature keys of the running title, and the EEPROM key checks the EEPROM header and is read again by the EEPROM editor to recompute the checksum it writes.
Loaded by name with every entry point resolved individually, and the failure message tells the user to install the upstream signed Dokany runtime. It backs the only path that reads a disc image: an .iso or .xiso is mounted to a drive letter and the default.xbe of the mount is opened, so without it only unpacked titles load. The build produces an import library from the Dokany definition file and takes headers from the vendored tree, but ships no runtime of its own.
Split on its two insertion markers, and every converted Xbox pixel shader is compiled inside it. Read when the Direct3D device is created and again whenever the hlsl folder changes, and the run ends when the file cannot be opened.
Compiled once per fixed function texture stage setup, under a name in the same folder so its include resolves there. Read when the Direct3D device is created and again whenever the hlsl folder changes, and the run ends when the file cannot be opened.
Read by the shader compiler through the include at the top of FixedFunctionPixelShader.hlsl, resolved beside that file. Without it the fixed function pixel shader does not compile.
Split on its insertion marker, and every converted Xbox vertex shader is compiled inside it. Read when the Direct3D device is created and again whenever the hlsl folder changes, and the run ends when the file cannot be opened.
Compiled as the fixed function vertex shader under its own path, so its include resolves in the same folder. Read when the Direct3D device is created and again whenever the hlsl folder changes, and the run ends when the file cannot be opened.
Read by the shader compiler through the include at the top of FixedFunctionVertexShader.hlsl, resolved beside that file. Without it the fixed function vertex shader does not compile.
Compiled for draws whose vertices the title has already transformed. Read when the Direct3D device is created and again whenever the hlsl folder changes, and the run ends when the file cannot be opened.