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
Background
In Nintendo disc processing (GameCube/Wii), the current code relies on guaranteed memory layout where the
cpr_maifield (6 bytes) is followed bymain_data, allowing safe pointer arithmetic beyond thecpr_maiarray 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
dvd/nintendo.ixx, line 36Requested by
@superg
cc: @superg