Skip to content

Define union for Nintendo sector layout #359

@coderabbitai

Description

@coderabbitai

Background

In Nintendo disc processing (GameCube/Wii), the current code relies on guaranteed memory layout where the cpr_mai field (6 bytes) is followed by main_data, allowing safe pointer arithmetic beyond the cpr_mai array boundary.

Enhancement Request

Define a union that explicitly captures the Nintendo sector layout to make this memory access pattern type-safe and self-documenting.

References

Requested by

@superg

cc: @superg

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions