Skip to content

fix: load runtime CODE resources on segment faults - #593

Open
benletchford wants to merge 1 commit into
masterfrom
dev/dynamic-loadseg-resources
Open

fix: load runtime CODE resources on segment faults#593
benletchford wants to merge 1 commit into
masterfrom
dev/dynamic-loadseg-resources

Conversation

@benletchford

Copy link
Copy Markdown
Owner

Summary

  • resolve missing _LoadSeg targets through the active Resource Manager search chain
  • register runtime-materialized CODE segment bases before reusing the existing jump-table patcher
  • preserve the existing refresh path for launch-time resident segments

Verification

  • cargo test --release --lib loadseg_ (13 passed)
  • Beyond Dark Castle opens BDC Data B, materializes CODE 19, and continues from the opening courtyard into responsive gameplay instead of halting
  • preserved disk 2 SHA-256: 8117a71ca64eca92b8d8d50c358692ccbc89d1e62c486e4a5c7cf1bedd199683

Closes #592.

@benletchford
benletchford marked this pull request as ready for review August 14, 2026 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LoadSeg cannot load CODE segments from resource files opened at runtime

1 participant