Files

16 lines
2.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Restore the account’s selected character models
On LOCAL, the stock getter remained true eight seconds after selecting SD and returned false after a clean quit, relaunch and world entry. At the moment of the change the client emitted a one-byte `0x4401B1` request. Wire dropped it 17.280 seconds before the logout request. The relaunch control emitted no setter. The captured world windows contained no generic account-data request or update. [Capture comparison](wire-metadata.json) · [LOCAL drop](/mnt/Games/@project/gateway/runtime/continuation-20261113/claude-lane/sdhd-capture-20261127/run1.log:48)
The stock toggle and the experience preset both write the same native preference. Build 70334 sends `80` for SD and `00` for HD. The character-list response (`0x470018`) initializes the setting from bit `0x20` of payload byte 1. Before the fix the gateway always cleared that bit. [Client decode and getter](binary-report.md)
Wire now routes the request to the authenticated gateway backend at character selection or in the world. The backend atomically replaces one byte in `WTF/GatewayAccountData/<account-key>/sdhd.bin` and reads it for the next roster. Unset and malformed records use the existing HD default. Each account has its own file. Realm changes and character changes retain its choice. The response updates only the preference bit, preserving the class-disable mask and every roster row.
## Verification
The restart regression runs five fresh host processes against two synthetic authenticated accounts. It covers an SD selection in the world, an HD selection at character selection, restoration after restart, and separation between accounts. It compares the entire response to the original roster except the preference bit. The original build rejects the SD write. The store test checks malformed input and files, retries and overlapping writers. The Wire dispatch fixture covers the authenticated request and the existing account-data paths. Run `ctest -R 'sdhd|wine-creation-dispatch|edit-mode-account-data'` in a configured host build. [Host results](/mnt/Games/@project/build/sdhd-native-20261127/host-preference-test.log) · [Wire results](/mnt/Games/@project/build/sdhd-native-20261127/host-wire-branch.log)
Both changed Windows x64 LOCAL targets compiled and linked. Wire imports the rebuilt Backend and the retained LOCAL Bridge import library. [Unsigned cross-build receipt](unsigned-windows-build.json)
Claude owns the release-qualified Wire and Backend pair and the patched LOCAL quit/relaunch checks. Select SD, quit, relaunch and check the stock getter at character selection and after entering the world. Repeat with HD. The original LOCAL reproduction is the pre-fix control.