Skip to content

feat(wad): admit entry counts below TOC capacity - #266

Merged
Crauzer merged 1 commit into
mainfrom
feat/wad-toc-slack
Oct 1, 2026
Merged

Crauzer merged 1 commit into
mainfrom
feat/wad-toc-slack

Conversation

@Crauzer

@Crauzer Crauzer commented Oct 1, 2026

Copy link
Copy Markdown
Member

WadTailLayout::admits_entry_count accepts any count <= toc_capacity. The lower bound (capacity - TOC_SLACK_ENTRIES, with the constant at 0) is removed along with the constant. The slack is set by the writer of the file (ltk_overlay).

The client reads chunk_count TOC entries and ignores the zeroed slots between the last entry and the first data byte. Verified in game with 16384 reserved slots: fresh build, in-place entry add, in-place entry removal.

Tests: count admission up to capacity, and a dropped entry leaving a zeroed slot that mounts.

@Crauzer
Crauzer merged commit e501f0d into main Oct 1, 2026
1 check passed
@Crauzer
Crauzer deleted the feat/wad-toc-slack branch October 1, 2026 15:19
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.

1 participant