Skip to content

Add bounding checks for DSMI AMF channel remap table.#91

Merged
sezero merged 1 commit into
sezero:masterfrom
AliceLR:fix-amf-channel-remap-bound
Jul 14, 2026
Merged

Add bounding checks for DSMI AMF channel remap table.#91
sezero merged 1 commit into
sezero:masterfrom
AliceLR:fix-amf-channel-remap-bound

Conversation

@AliceLR

@AliceLR AliceLR commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

The indices in this table corresponding to real channels should also point to real channel numbers.

Verified that Test6.amf, reborning.amf, and the tribal zone.amf still load after this fix. This feature is only used by format versions 0.9 and 1.0.

The indices in this table corresponding to real channels
should also point to real channel numbers.

Verified that Test6.amf, reborning.amf, and the tribal zone.amf
still load after this fix. This feature is only used by format
versions 0.9 and 1.0.
@sezero

sezero commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Verified to work: Thanks. Please mark as ready when you feel it's finished.

@AliceLR AliceLR marked this pull request as ready for review July 14, 2026 01:24
@AliceLR

AliceLR commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author

Verified of.numchn never changes after assignment and that all of the DSMI AMF modules on Modland still load (probably correctly). I think this is OK.

@sezero sezero merged commit 68b351f into sezero:master Jul 14, 2026
@sezero

sezero commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Thanks.

@sezero

sezero commented Jul 14, 2026

Copy link
Copy Markdown
Owner

How is libxmp affected?

@AliceLR

AliceLR commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator Author

How is libxmp affected?

libxmp doesn't implement the remapping table at all, so it's fine.

@AliceLR AliceLR deleted the fix-amf-channel-remap-bound branch July 14, 2026 01:51
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.

2 participants