Files
BearddOddity 309bfbedfc docs: list every RECOMP_* switch in one page, and link it from the index
docs/INDEX.md stays the one index. Every page gets one navigation line under
its title that points back to it, and runtime/ gets a reference page for the
environment variables.

docs/runtime/environment-variables.md lists every RECOMP_* switch the runtime
and tools read: its default, its effect and the source file that reads it,
grouped as bring-up, kernel, pushbuffer executor, video, audio and input.
Fifty-one of them were not in the docs at all. docs/INDEX.md links it from
"Start Here".

No page is renamed, moved or rewritten, and no other index is added.

Checked: every RECOMP_* name read by getenv, env_on, apu_env_on, env_int or
xa2_env_int in src/, tools/, templates/ and include/ is on the page, and
every name on the page is in the source. All relative links in docs/ resolve
(0 broken, as at v0.16.0). The 34 existing pages change by insertion only:
68 lines added, none removed. docs/INDEX.md gains one line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-21 04:59:55 -05:00

7.9 KiB
Raw Permalink Blame History

Documentation Index

Every document in the toolkit, in one place. The README's Documentation section lists where to start; this page lists everything, and then the same pages again by the problem in front of you — because a title under bring-up rarely announces which subsystem it is stuck in.

Start Here

  • Getting Started — End-to-end walkthrough from XBE to a running title
  • Decompilation Guide — Using the toolkit as a function splitter instead: one byte-exact .s per function, with signatures and the call graph
  • Runtime Implementation Guide — The four pillars every title needs: memory layout, kernel, graphics, input
  • Environment Variables — Every RECOMP_* switch: default, effect, and the source file that reads it
  • Contributing — Setup, where to focus, code style, how to submit

Pipeline Guides

One per stage, in the order you run them.

Technical Deep Dives

Recompiled code

Runtime

Graphics

Microsoft's own recompiler

Project

Xbox Formats

Per-Module API Reference

  • Runtime Libraries — Architecture, build instructions, integration guide
  • xbox_kernel — Memory layout, file I/O, threading, sync, crypto, EEPROM, SMBus
  • xbox_d3d8 — D3D8 interface, register combiners, vertex shaders, texture unswizzle
  • xbox_dsound — DirectSound buffers, 3D audio, mixbins
  • xbox_apu — MCPX APU voice processor, mixer, MMIO
  • xbox_nv2a — NV2A GPU registers, push buffer, PGRAPH→D3D11
  • xbox_input — Gamepad state, vibration, button mapping

Tools

By Symptom

Where to look when a title does something and says nothing about why.

The title… Look at
exits cleanly after two kernel calls a thread start routine with no dispatch entry: tools/seed_from_log, Functions the Detector Misses
logs [ICALL] Failed to resolve VA between two functions Reached only through a pointer
splits one function at an interior branch target Recovering a Split Function
logs it for an address inside a function Back-to-back functions, merged, or a jump table the lifter missed
starts no CRT thread at all A no-return call swallows the next function
crashes on its first movie Library sections with no functions at all
fails to build on dr0–dr7 Privileged Registers
ignores an override in recomp_manual.c Replace, Don't Wrap, Registers in recomp_manual.c
duplicates NtCurrentThread() forever Pseudo-Handles Are Negative
runs out of memory as the CRT heap grows The Heap Grows Only on 487
slows to 1 FPS some minutes into a level Counters Outlive 32 Bits
reports ABI violations in CRT helpers Reports RECOMP_ABI_CHECK Always Gives