OBattler
44c6daad1c
Fixed IOCTL failing to read raw TOC after hard reset.
2025-02-13 08:36:36 +01:00
OBattler
9a1ae5997f
Fixed ATAPI transfer split by sectors and improved the performance of IOCTL by making it no longer constantly open and close the handle.
2025-02-13 01:44:10 +01:00
OBattler
c1f0bab3b1
Merge remote-tracking branch 'origin/master' into cdrom_changes
2025-02-13 00:50:25 +01:00
OBattler
4806519388
The device_t available/poll union is now gone, mouse poll is now set using mouse_set_poll(), and mouse_curr is now also gone.
2025-02-13 00:23:35 +01:00
OBattler
74e0408201
Current WIP CD-ROM changes.
2025-02-09 20:06:15 +01:00
OBattler
35a12e0826
CD-ROM: IOCTL now detects medium changes without having to read the host drive's TOC on every operation, improves performance.
2025-02-03 10:57:19 +01:00
Jasmine Iwanek
5f273265ae
Assorted warning fixes
2025-02-02 03:24:50 -05:00
OBattler
e11b5535e1
Fixed some CD-ROM commands not stopping audio play when they should have (fixes data playing as audio, producing nasty artifacts, in some games), and increased the media history for all drive types from 4 to 10, also refactored cdrom_read_sector() and moved the last module-wide variables into the cdrom_t struct.
2025-01-30 08:15:39 +01:00
OBattler
8a1862c4b2
CD-ROM: Correctly return from read sector with the return code from the back-end in case of error, fixes System Shock 2 CD detection.
2025-01-30 06:38:05 +01:00
OBattler
b57281c57e
CD-ROM: No longer fatal when encountering a mode 1 sector on a XA disc - apparently such discs actually exist.
2025-01-29 23:48:09 +01:00
OBattler
7c6f45b4cd
Fixed CD-ROM image mounting crashes and, hopefully, Linux compiles.
2025-01-28 18:39:26 +01:00
OBattler
90e1190c92
The great CD-ROM clean-up and rewrite, fixes #5134 .
2025-01-28 16:26:28 +01:00
OBattler
370c560c34
Only attempt Cue sheet parsing on files that end in .cue (in any letter case), fixes errors with some .ISO images.
2025-01-03 01:19:52 +01:00
OBattler
509e1e5961
cdrom/cdrom.c that I forgot to commit before.
2025-01-03 00:27:21 +01:00
OBattler
084011bd70
cdrom/cdrom.c: Fix some nonsense with labels, fixes compile error on... I think Linux?
2024-12-31 04:58:59 +01:00
OBattler
3187595885
Fixed some warnings.
2024-12-31 04:40:14 +01:00
OBattler
7b6a9181c6
Current state of the CD-ROM node - no CUE/BIN overhaul or MDS/MDF support yet, but the rest is already there.
2024-12-31 04:37:21 +01:00
OBattler
5c27083af6
CD-ROM interface API to get raw track data, IOCTL now actually provides it, and IOCTL is now actually instantiable, as well as cleaned up a bit.
2024-11-25 21:23:28 +01:00
OBattler
945a57376f
CD-ROM: Fix raw TOC reads.
2024-11-19 23:43:55 +01:00
RichardG867
aeaaa09b16
CD-ROM: Report image backend I/O errors as media CRC errors to the drive
2024-10-27 13:17:55 -03:00
OBattler
5234446194
CD-ROM: Remove excess logging.
2024-09-18 19:57:58 +02:00
OBattler
7068655343
CD-ROM: Implement not ready to ready transition in a cleaner and better way, fixes #4805 .
2024-09-18 08:01:38 +02:00
OBattler
7c74a977fa
There goes the legacy host_drive.
2024-05-20 02:15:17 +02:00
OBattler
641da43f15
IOCTL and CD-ROM changes.
2024-05-19 21:17:57 +02:00
TC1995
9af55412db
Make the CD/DVD-ROM passthrough actually work (WIP)
...
Still WIP, eject/reload in the qt side is a bit broken.
2024-05-18 22:37:49 +02:00
TC1995
4fdb339407
Attempt #2 to implement CD-ROM passthrough.
...
Still Windows only on the QT side.
2024-05-18 19:42:00 +02:00
OBattler
10fd8fb004
Assorted CD-ROM fixes, fixes #4386 .
2024-04-22 02:04:57 +02:00
TC1995
0d88e8394c
SCSI CD-ROM fixes of the day.
...
1.Re-implemented in the best way possible the muted part of the Toshiba/NEC Play Audio commands and related, per spec.
2. Forgot to add a check to a Sony Vendor Data Out command when the len is 0 it should become a Status command, fixes emulator crashes when len is 0 using some CD software.
2024-02-06 21:18:25 +01:00
OBattler
5c15da4a17
CD-ROM: Converted the wrong kind of trailing slash, fixes #4038 .
2024-01-14 21:31:46 +01:00
TC1995
ecd67950d4
SCSI CD-ROM Toshiba fixes.
...
Data track is not audio, fixes anything that wants to play data track as audio.
2023-12-16 14:03:42 +01:00
RichardG867
9bcece63fc
Fix some random comments which have been bugging me
2023-11-10 17:27:30 -03:00
TC1995
961a2483ad
SCSI CD-ROM fixes (NEC):
...
1. Added Mode Page Codes 0x00 and 0x03 (Unit Attention and Format Device) to the SCSI CD-ROM code.
2. Corrected the Read Disc Information TOC (actually Read TOC vendor unique) for NEC SCSI CD-ROMs, this, together with the fix above, fixes reading data cd-rom's using NEC vendor commands.
3. Actually identify NEC drives per manual (SCSI unknown version per the -75 and -77 manuals).
4. Re-added the 75 and 77 drives now that the NEC vendor commands are fine + an extra 25a drive with revision 1.0a (from a screenshot from vogons).
2023-10-24 20:15:08 +02:00
OBattler
7013949310
Made sure the dummy "None"/"Internal" devices never get initialized and fixed some PCI AGP bridge mess (including AGP-less 440BX/ZX/GX erroneously initializing the 440LX/EX AGP bridge), fixes #3696 .
2023-10-14 06:45:45 +02:00
Jasmine Iwanek
197e817ea3
Remove several unused variables
2023-10-08 13:32:43 -04:00
TC1995
f30c71ed3b
SCSI changes 2:
...
Replaced the string comparisons with proper drive types comparisons without strings.
2023-09-24 07:44:25 +02:00
TC1995
7c6381b2ea
SCSI changes and fixes:
...
1. Added the Tribble 16-bit IBM SCSI adapter.
2. Reworked the vendor unique commands to counter audio issues as well as adding some undocumented commands (thanks to the source code of xmcd!), plus replacing the NEC CD-ROM DRIVE:75 with the :38 one.
2023-09-20 20:29:32 +02:00
Jasmine Iwanek
12070eb62a
More linting in src/cdrom
2023-08-22 19:50:44 -04:00
OBattler
6fae975a72
PIT type selection, CD-ROM model filtering by bus, and translation updates - closes #3354 .
2023-08-16 05:23:03 +02:00
Jasmine Iwanek
ee695e71f9
More sonarlint work
2023-07-25 17:59:22 -04:00
Jasmine Iwanek
21adfd4d50
Next round of sonarlint cleanups
2023-06-26 18:28:13 -04:00
Jasmine Iwanek
ce451a2bf4
More fixes for sonarcloud findings
2023-05-28 21:02:17 -04:00
Jasmine Iwanek
0e53a29e3d
Fix build when ENABLE_CDROM_LOG is set
2023-02-06 14:28:59 -05:00
OBattler
54d862d0b7
Fixed another warning in cdrom/cdrom.c.
2023-01-10 04:15:29 +01:00
OBattler
b91f79dcdc
Fixed warnings in cdrom/cdrom.c.
2023-01-10 03:50:47 +01:00
TC1995
e5496e2638
Overhauled CD-ROM selection for SCSI and ATAPI, including model and vendor specific commands.
...
Fixed the Spock SCSI ID selection.
Fixed CD Audio on NCR 5380-based SCSI controllers.
Added a proprietary CD-ROM controller selection (not hooked up yet).
All on qt only.
2023-01-07 23:48:45 +01:00
TC1995
df3c4b155a
SCSI/CD-ROM fixes: Properly implemented the Toshiba specific SCSI commands including the Audio side per the Toshiba CD-ROM SCSI-2 manual from 1990 (they were previously implemented with some hacks).
2022-12-04 20:53:03 +01:00
Jasmine Iwanek
bd75bc141a
Header cleanups
...
Tabs to spaces
Consistency
2022-11-13 21:15:47 -05:00
Jasmine Iwanek
381960dfc0
More mitsumi cdrom stuff
2022-11-05 20:17:39 -04:00
OBattler
4d19b8a1e4
Added the ability to select earlier CD-ROM drive (emulates Chinon CDS-431 for SCSI and NEC CDR-260 for ATAPI) - needs to be ported to QT.
2022-10-29 06:44:30 +02:00
Jasmine Iwanek
d044f8d1f6
clang-format in src/cdrom/
2022-09-18 17:19:21 -04:00