9 Commits

Author SHA1 Message Date
Andre Zeps
ba737be4a4 CD-i: Various fixes for CD handling (#1143)
- Fixed missing Q subcode of every other sector during Lead-In

It is interesting to note that some Audio CDs could still be read
with a broken TOC, which can be explained by entries being repeated

- Fixed single bin images without Index 0

Track End is now properly calculated
2026-03-30 18:43:48 +08:00
Andre Zeps
d0cf945ae2 CD-i: Buffer overflow fix + Initial default NvRAM (#1106)
* CD-i: Fixed buffer overflow

Fixed reintroduction of the buffer overflow by
commit 1addb89ff

Originally was fixed with c0171c9 but not yet
well understood.

* CD-i: Mount root folder NvRAM after core load

Instead of starting with an empty NvRAM,
"saves/CD-i/CD-i.sav" will be loaded instead.

Avoids machine reset by NvRAM change in case
a root folder CD image shall be used
2026-02-26 13:16:21 +08:00
Andre Zeps
c397c9413d CD-i: Add detection of different disc types for TOC usage (#1088)
Also replaced some magic numbers with enums
2026-01-19 13:41:45 +08:00
Andre Zeps
c81247306b CD-i: Adapt save file name according to PSX behavior (#1060)
All of these scenarios will share one save file:
- Root folder titles
- Multi-Disc titles
- CHD and CUE/BIN
2025-11-11 22:51:35 +08:00
Andre Zeps
1addb89ffe CD-i: Fix table of contents (#1043)
Repair of accidental removal of subcode generation
during Lead-In. (negative lba)

Bug was introduced with c0171c9
2025-09-30 14:27:16 +08:00
Andre Zeps
c0171c9dca CD-i: Fixed buffer overflow (#996)
Fixes potential cause of SIGSEGV
during image reading
2025-06-25 16:16:27 +08:00
Andre Zeps
2f6459d887 CD-i: Fixed buffer invalidation on image change (#984)
- Fixes games not loading after inserting audio CDs

CD-i: Disc type transfer to core

- Audio CD or CD-i sent via status flags

CD-i: Adopt folder select behavior of PSX and Saturn

A single image in a folder is loaded when a folder is selected
2025-04-23 14:09:06 +08:00
Andre Zeps
57d29ae3e5 Philips CD-i: Subcode and image handling (#954)
* Philips CD-i: Rewritten image handling

Added subchannel Q data
Added Table of Contents
Fixed differences between CUE and CHD
Fixed handling of data in pregap

* Philips CD-i: Add support for scrambled sectors

Fixes "The Apprentice (Europe)"
2025-01-19 15:49:05 +08:00
Andre Zeps
b79e95ee97 Philips CD-i (#939)
* CD-i: add cd reading support

Inspired by the PSX code

* CD-i: add cd reading support

Fix CDI track type

* CD-i: NvRAM backup and restore
2024-12-16 13:04:40 +08:00