loader: VICTORY_HOLD_BYTE debugging aid (hold a title watchdog's pause flag during slow init) #107

Manually merged
github merged 1 commit from github-bot/gh-107 into main 2026-11-26 16:40:53 +00:00 AGit
Owner

@⁠daidalos4 on GitHub · 2026-11-26 16:17 UTC · original
daidalos4:hold-byte → main · +20 −0 · 3 files · 1 commits · merged 2026-11-26 16:38 UTC

Adds VICTORY_HOLD_BYTE=<hex address>:<hex byte>, a debugging aid next to VICTORY_WATCH_MEM: a thread keeps one byte of title memory at a given value, rewritten every 250 ms. It does nothing unless set.

Why: the title runs a 30 s init watchdog. With the game files on a network share or a slow disk, init takes longer than that and the run ends before the start screen. On the build we test, 1471b6330:1 holds that watchdog's pause flag. With it, my runs from a network share (~1 MB/s cold) reach the start screen, FINISH SETUP and LEGAL NOTICES. The address only fits that build, which docs/native-host.md says.

Changes:

  • crates/victory-loader/src/native/dump.rs: start_hold_byte()
  • crates/victory-loader/src/native/run.rs: started next to start_mem_watch()
  • docs/native-host.md: one bullet

Pairs well with #101 (read cache) for slow storage, but neither depends on the other.

**@⁠daidalos4** on GitHub · 2026-11-26 16:17 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/107) `daidalos4:hold-byte` → `main` · +20 −0 · 3 files · 1 commits · merged 2026-11-26 16:38 UTC Adds `VICTORY_HOLD_BYTE=<hex address>:<hex byte>`, a debugging aid next to `VICTORY_WATCH_MEM`: a thread keeps one byte of title memory at a given value, rewritten every 250 ms. It does nothing unless set. Why: the title runs a 30 s init watchdog. With the game files on a network share or a slow disk, init takes longer than that and the run ends before the start screen. On the build we test, `1471b6330:1` holds that watchdog's pause flag. With it, my runs from a network share (~1 MB/s cold) reach the start screen, FINISH SETUP and LEGAL NOTICES. The address only fits that build, which `docs/native-host.md` says. Changes: - `crates/victory-loader/src/native/dump.rs`: `start_hold_byte()` - `crates/victory-loader/src/native/run.rs`: started next to `start_mem_watch()` - `docs/native-host.md`: one bullet Pairs well with #101 (read cache) for slow storage, but neither depends on the other.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 16:18:51 +00:00
github manually merged commit f95b91f22f into main 2026-11-26 16:40:53 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 16:38 UTC · original · approved these changes

Off by default behind VICTORY_HOLD_BYTE and documented as build-specific. Merged onto main, loader tests (x86_64), clippy and policy are clean, check is green.

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 16:38 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/107#pullrequestreview-6077668374) · **approved these changes** Off by default behind VICTORY_HOLD_BYTE and documented as build-specific. Merged onto main, loader tests (x86_64), clippy and policy are clean, check is green.
This discussion has been locked. Commenting is limited to contributors.
No description provided.