Skip to content

feat(minarch): support Dreamcast/GD-ROM CHD RetroAchievements hashing - #905

Open
Pobega wants to merge 1 commit into
LoveRetro:mainfrom
Pobega:feat/ra-dreamcast-gdrom
Open

Pobega wants to merge 1 commit into
LoveRetro:mainfrom
Pobega:feat/ra-dreamcast-gdrom

Conversation

@Pobega

@Pobega Pobega commented Nov 19, 2026

Copy link
Copy Markdown

Map the DC pak tag to RC_CONSOLE_DREAMCAST so RetroAchievements can identify Dreamcast titles launched through MinArch.

Update the CHD reader to parse GD-ROM metadata (CHGD/CHGT tags and the PAD field), compute disc-absolute track start LBAs with GD-ROM track 3 anchored at LBA 45000, and return track_lba_start from chd_first_track_sector(). Enforce per-track sector bounds in chd_read_sector() so rcheevos falls back to the final track on multi-track GD-ROMs, and handle RC_HASH_CDTRACK_FIRST_OF_SECOND_SESSION in find_track().

Map the DC pak tag to RC_CONSOLE_DREAMCAST so RetroAchievements can
identify Dreamcast titles launched through MinArch.

Update the CHD reader to parse GD-ROM metadata (CHGD/CHGT tags and the
PAD field), compute disc-absolute track start LBAs with GD-ROM track 3
anchored at LBA 45000, and return track_lba_start from
chd_first_track_sector(). Enforce per-track sector bounds in
chd_read_sector() so rcheevos falls back to the final track on
multi-track GD-ROMs, and handle RC_HASH_CDTRACK_FIRST_OF_SECOND_SESSION
in find_track().
@Pobega

Pobega commented Nov 19, 2026

Copy link
Copy Markdown
Author

This change is mainly for adding Dreamcast GD-ROM support for RetroAchievements. There are some small parity fixes (track_lba_start, per-track bounds checking, second session track lookup) that make minarch's CHD reader behave more like rcheevo's built-in .cue/.bin reader.

This is a chore task as part of my HW render code (since the main motivation for that was minarch integration, RetroAchievements and dpad-to-analog).

Other than this the only thing left is the hardware render code, though I'd like to land this first if at all possible.

This branch has not been deployed

No deployments
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