Miss-Inputs/ROMniscience

Read CD images

Miss-Inputs opened this issue · 2 comments

Add a generic way to handle disc images, abstracting the difference between .iso (2048 byte sectors) with .bin/.cue (with two files of course, and also 2352 bytes per sector because of 16 control bytes at the front which I don't think I need to read, and 288 error correction bytes at the end that I also don't think I need to read; although for datfile purposes I'll just read the whole thing first, it would only matter for any headers inside).

A good start would be Mega CD, since I already have the Megadrive handler and it'd be the same format, just with the need to take sector alignment into account with .bin/.cue as it ends up starting at 0x110 instead of 0x100.

Possibly add other formats like .chd if I can?

For DVD-based formats, there's no weird difference in sectors; as with GameCube/Wii discs. Presumably Dreamcast as well, though those just confuse me.

Well, that's a disc based format added. Gamecube and Wii to start off with.

YEET