Docs

These docs follow the dev branch and can describe changes newer than v0.9.4. The release notes list what the download contains.

Title update v4#

Title update 4 adds the Rally expansion's game code and the 1000 Club car challenges. It is a small package: three executable patches and one media.zip. The update was built for a different disc release than the supported USA disc, but its patches still apply to the USA disc's modules and produce exactly the v4 images.

USA DISC (0.0.0.10)default.xex24.6 MB imagetwo facade modulesSpeech and XMedia facadesmedia/archives, XML, banksTITLE UPDATE PACKAGE (STFS)default.xexpheader + LZX image deltafacade .xexp x2also replace the module keymedia.zip918 files: Rally, databasev4 imagesdefault.xex 25.8 MB,reports 0.0.4.10;page hashes match v4'sown (371/371)media seen by the gameupdate members win
How v4 is put together from the disc and the update package. The patched images are byte-identical to v4's own page hashes, so code addresses on these pages are the same however the image was produced.

For reverse engineering, v4 is a second, larger executable with the same design. About half of its functions are the base game's functions moved to new addresses; the rest differ, largely because classes grew and their fields and vtable slots moved. Every record on these pages gives the v4 address when it is known, and the mapping between the two is mechanical for most code:

# Map base addresses to v4. Both inputs are loaded images (pinyon_shift_fh1_archive_extract
# --xex-image and --title-update-image); addresses.json is a list of {"address", "kind"}.
python tools/map-fh1-v4-addresses.py default.base.bin default.v4.bin --addresses addresses.json --output v4.json

It tries, in order, an identical normalized function body, a call-graph pairing, a unique instruction window and a data reference from already-matched code, and reports what it cannot map rather than guessing (Methods and tools). The verified pairs the host uses are in src/fh1_v4_addresses.inc, and the mod symbol table is generated for both executables, so mods that use names run on either.

Package and images#

AddressFindingConfidence
default.xex
SpeechFacade_default.xex
XMediaFacade_default.xexv4default.xexp
SpeechFacade_default.xexp
XMediaFacade_default.xexp
v4 applies exactly to the USA disc The surviving v4 update was built for media 4000D145, version 0.0.0.12, while the supported USA disc is media 2DC7007B, version 0.0.0.10. Applying its patches to the USA disc still produces the exact v4 images: 371/371, 54/54 and 61/61 pages match v4's own page hashes, and the image-key check passes for all three modules. The patched default.xex image has SHA-256 prefix 74B033805AB1BCAA and its headers report media 2DC7007B, version 0.0.4.10. The RSA signature over these hybrid headers is not valid; recompilation does not need it. An external report (xenia-canary issue 738, not checked here) shows the same update applying to media 2B7A1346.

Established by Applied each header and image delta while tracking whether every output byte came from the base, a patch literal or zero fill; checked each 64 KiB page as SHA1(page plus its own descriptor) against the previous descriptor's digest, rooted in the patch's security info. Controls: base pages verify against base headers, a flipped bit fails exactly its page, and the v4 image against base headers fails 353 of 354 pages.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md Finding: v4 applies exactly to the USA disc; docs/DLC_BACKLOG.md

Confirmed
—v4title update packagetitle update package structure The v4 title update is an STFS package with exactly four files: default.xexp, SpeechFacade_default.xexp, XMediaFacade_default.xexp and media.zip (918 files: the Rally game flows, an updated game database, 113 UI scenes, Rally strings in every language and Car Challenge data). Each .xexp holds a header delta and an LZX image delta. The facade patches' header deltas hold several records (they also replace the module key), bounded by the descriptor size minus its leading fields. No FH1 patch moves a module's load address.

Established by Package listing by the archive extractor; applying the patches reproduced the verified images byte for byte only once the header delta was read to the descriptor size.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md What v4 adds, TU-1; tools/fh1_archive_extract.cpp --title-update-files

Confirmed
default.xex RSA signaturev4default.xexp digest_sourcesignature mismatch does not mean the wrong base A patch's digest_source differs from the base's RSA signature whenever the headers differ (media ID, version), even when the code is identical, so comparing them cannot tell whether a patch fits a base. That comparison had wrongly ruled out v4 on the USA disc. An earlier extracted v4 image was in fact correct; it differed only in 41 import-table bytes that the loader rewrites.

Established by Compared with the page-hash verification.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md Finding: v4 applies exactly to the USA disc

Confirmed Negative
—v4xam.xex ordinal 0x69v4 imports v4 adds one import, xam.xex ordinal 0x69 (NetDll_XnpGetConfigStatus). Its xboxkrnl.exe imports are unchanged from the base.

Established by Import table comparison of the base and v4 images.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md What v4 adds

Confirmed
—v4default.xexv4 identifier inventory v4's default.xex contains 102 C-prefixed identifiers (behaviour and class names) that the base lacks and removes none; 26 apparent removals are tail-merged strings. The v4 Rally flows alone use 39 Rally behaviours that do not exist in the base. The new names cover Rally entry and hub, race and scoring, progression, audio, the 1000 Club and Car Challenge, an in-game DLC alert and Auction House data sources.

Established by String comparison of the base and v4 images; reading v4's Rally flow files for the behaviours they use.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md What v4 adds

Confirmed
SpeechFacade_default.xex
XMediaFacade_default.xexv4same modules after patch
facade exports in v4 Both facade modules keep their 14 export ordinals in v4, and every v4 export points at the mapped counterpart of its base function.

Established by Ported analysis files for both facades; export table comparison.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-3

Confirmed

Address mapping#

AddressFindingConfidence
57
127 .pdata functionsv460
903 .pdata functions
how base code maps to v4 About half of the base's functions are unchanged in v4 apart from branch displacements and absolute addresses: 27,556 of 57,127 have a unique, identical normalized body in both images, and call-graph anchoring through aligned code pairs maps 5,561 more. The rest needs instruction-window context, vtable slots and lis/addi references (for code outside .pdata), or a shape match that tolerates field offsets, because classes grew and their field offsets and vtable slots moved. Runs of small subi r3,r3,4; b thunks look identical once branches are masked, so a correct pairing must also check that direct branches reach the mapped counterparts of their targets.

Established by A mapper over both loaded images, functions taken from each image's .pdata, every result shape-checked over its own range and tested on synthetic images. An earlier version shifted a thunk run by one, which the branch check now rejects.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-3; tools/map-fh1-v4-addresses.py; tools/port-fh1-v4-analysis.py

ConfirmedAll hooks, function entries, codegen address lists, setjmp/longjmp and the CRT replacements map; overrides.toml holds the reviewed exceptions.
0x832E4A80
0x824AFB20
0x82DE7330
0x8203650C
0x82000D48v40x833D23E0
0x82E55D58
0x824CEAB0
0x82033558
0x82000D48
how far addresses move The 85 base addresses host code uses pair with v4 counterparts as 50 code (27 exact, 10 aligned, 10 context, 2 shape-context, 1 vtable) and 35 data (27 data, 6 data-ref, 2 manual overrides). Most v4 code and data sit 0x10000-0xC0000 higher than in the base (globals near 0x832E4A80 move to about 0x833D23E0), but some functions were relocated far away (0x824AFB20 to 0x82E55D58, 0x82DE7330 to 0x824CEAB0) and a few data items moved down (0x8203650C to 0x82033558) or stayed put (0x82000D48).

Established by The generated address table, built by scanning host code for addresses and mapping each; an unmapped address fails the build.
Detail src/fh1_v4_addresses.inc; tools/generate-fh1-v4-addresses.py; docs/TITLE_UPDATE_V4_BACKLOG.md TU-3

ConfirmedThe backlog quotes 83 verified pairs; the committed table now has 85.
—v482E55C00
83171338
sub_827611D8
v4 functions the analyzer misses v4 has indirect-call targets that are not in its .pdata, among them 82E55C00 and 83171338; 35 functions had to be declared in all. v4 has 253 virtual-call thunks outside .pdata; the same rule finds 66 of the base's 70 hand-listed thunks with identical sizes, and four base thunks have no one-to-one v4 counterpart because their vtable slots moved. The new v4 function sub_827611D8 has a jump table whose bound check is separated from its branch by an lfd, so its table size must be declared.

Established by The first v4 boots stopped on unregistered indirect-call targets; thunk discovery in the mapper; code generator warning review.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-3, TU-5

Confirmed
0x8223C5F4
0x8223C6C4v40x8224F754
0x8224F824
render-settings control vtables Vtables of two DynamicRenderSettings control types: the float control (used by EnvMapFrequencyScale) and the bool control (used by SkipShadowMapUnlessCockpit). The v4 vtables hold the mapped methods in the same order and keep their 0xD0 spacing.

Established by Manual pairing: 5 of 7 slots equal, the other two the base's neighbours; the bool vtable's trailing "Skip" string matches.
Detail config/rexglue/analysis-v4/overrides.toml; docs/TITLE_UPDATE_V4_BACKLOG.md TU-3

Probable
82CB6308
82CB7A88
82CB9F98
82CBA9F8
82D0FA28
82D123D0
82D1D4E8
82D20A40
82D210F8
82D21DB0
82D230B8
82D2EC70
82D2F070
82D303D0
82D37C70
82D39140
82D3A350
82D48518
82E2D5A8v482D77DF0
82D79570
82D7BA80
82D7C4E0
82DD1890
82DD4248
82DDF430
82DE29A0
82DE3058
82DE3D10
82DE5018
82DF0DA0
82DF11A0
82DF2500
82DF9CF8
82DFB280
82DFC430
82E0A610
82EEF5B8
physics specialization functions in v4 The 19 car-physics functions the base build specializes (NN-5.1) all exist in v4, but three changed. 82D210F8 (v4 82DE3058) keeps its size, 0x514 bytes, with 80 % of its instruction shape equal; 82D303D0 (v4 82DF2500) keeps its size, 0x1A0, at 99 %; 82D1D4E8 (v4 82DDF430) keeps its size, 0xEC, at 88 %. The title update edited car physics in these bodies, so a result measured on the base build's physics does not carry over to v4 unmeasured. The other 16 map automatically (exact or aligned).

Established by Automatic mapper for 16. For the three: callers paired at the same call positions (82D210F8: one caller, 82D303D0: two callers, four calls each) with one-to-one mapped callees; 82D1D4E8 has no direct caller and is the only v4 function of its size range with a similar shape (next best 14 %), referenced from the same three tables, one of which keeps its constant neighbours.
Detail config/rexglue/analysis-v4/overrides.toml; issue #743

Probable
host_overridden_functions
register_locals_functions
fixed_fp_mode_functions
single_precision_functions
reference_functions
host_local_lr_keep
[rexcrt] SwitchToFiber
address lists the v4 port did not map Until October 2026 the v4 port of the analysis files rewrote only single-address keys and function tables. Address lists, and the [rexcrt] fiber keys other than the three CRT memory routines, were copied with their base addresses and reported as mapped, so the v4 file had to be edited by hand and still lacked every codegen option that carries a list (NN-1.2, NN-1.3, NN-5.1, NL-1.5, NL-1.10). The port now maps every address under a key its schema names, stops on an image address under any other key, and checks host_overridden_functions against the v4 address of every PINYON_GUEST_NATIVE declaration: 14 of 16 agreed with the automatic mapper, the two FMOD voice methods (830B6500, 830B6510) needed the declared pairs.

Established by Regenerated the v4 files with the old port and diffed them against the committed ones; a synthetic test for each address-bearing key.
Detail tools/port-fh1-v4-analysis.py; tools/tests/test_v4_mapping.py; issue #742

Confirmed Negative

Layout changes#

Struct offsets the host and mods use were rechecked on v4. Most did not move; these did, or were proven not to.

AddressFindingConfidence
sub_8249E570v4sub_8250B050car fields moved by 16 bytes The setter that hands a car to the title's AI reads +0x3B70/+0x3B78 in the base and +0x3B80/+0x3B88 in v4, so the car fields after about 0x3B00 moved by 16 bytes. In v4, +0x3B88 reports whether the player controls the car.

Established by Aligned instructions of the matched functions (identical code apart from the moved field; every base caller maps to a v4 caller); used successfully as the v4 render-test AI driver.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-4, TU-6

Confirmed
sub_8262B348v4sub_826D3068race statistics fields The race-statistics function uses +0x368/+0x36C in v4 where the base uses +0x360/+0x364.

Established by Aligned instructions of the matched functions.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-4

Confirmed
sub_82739D00
0x8273A10Cv4sub_827EBEE0
0x827EC3FC
pause object grew by 0x20 The pause-menu object grew by 0x20 bytes in v4: the field the CPauseMenu action switch's common exit stores at +0xD48 is at +0xD68.

Established by Common exit of the action switch compared in both images; recorded as a manual override.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-3; config/rexglue/analysis-v4/overrides.toml

Confirmed
sub_827A1CD0
0x827A1DC4v4sub_8285BAA0
0x8285BB94
front-end state fields The front-end state function's fields +0x168 and +0x179 are +0x16C and +0x17D in v4 (moved by 4), and the function grew from 0x7C0 to 0x7F0 bytes. The stored register changed (r29 instead of r30), so register roles at that site differ.

Established by All 78 mapped callees match; aligned instruction run of 12 at the traced site.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-3; config/rexglue/analysis-v4/overrides.toml

ConfirmedRegister roles at the trace site on v4 are still to recheck.
content manager +124
+180v4+140
+204
content manager grew The DLC content manager's category table moved from +124 to +140 and its entitlement vector from +180 to +204 in v4.

Established by Manager dumps from both builds in the Rally car-database trace route.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-6

Confirmed
profile.add_value 824F285Cv48255E5C4mod offsets on v4 Of the 34 struct offsets the mod API uses, 33 are unchanged in v4; only the profile's loaded byte moves, from +40 to +44. The collectible record's revealed byte stays at +40 (v4 setter 82C65210), and the game object's user (+108) and the discount sign's record (+148) are unchanged wherever the object type is proven. Earlier readings of 108 to 112 and 148 to 180 came from sites that belong to other objects.

Established by Field-by-field comparison of one base and one v4 site per offset, with the words confirmed in both images; the mods UI route passes on v4.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-4; config/mod/fh1-offsets-v4.toml

Confirmed
vehicle.active_slot 1500
vehicle.slot.position 15120
vehicle.slot.forward 15184
main_loop.delta 0x1C0v4same
unchanged pose and main-loop offsets The vehicle-pose fields (active slot +1500, position +15120, forward +15184, slot stride 1056) and the main loop's delta field (+0x1C0) did not move in v4.

Established by The v4 functions are instruction-identical at those fields; v4 render tests used the unchanged hooks.
Detail docs/TITLE_UPDATE_V4_BACKLOG.md TU-4, TU-5

Confirmed Negative