Commit Graph

314 Commits

Author SHA1 Message Date
OBattler
bb1b666010 Removed some commented out stuff. 2025-03-17 00:43:18 +01:00
OBattler
c79844a889 Conflict resolution. 2025-03-13 21:21:25 +01:00
OBattler
8722fe0080 CD-ROM: Optimize Windows IOCTL disc change checking. 2025-03-13 21:17:25 +01:00
Jasmine Iwanek
fc639750ac Fix three warnings 2025-03-10 05:28:11 -04:00
OBattler
c8d88d1dd0 Merge remote-tracking branch 'origin/master' into cdrom_changes 2025-02-14 07:40:18 +01:00
OBattler
2c197000ea Removed the legacy #defines in device.h. 2025-02-14 07:39:21 +01:00
OBattler
1a0cefc3b3 And some more. 2025-02-14 03:29:35 +01:00
OBattler
da360ab9da IOCTL: Fix detection of whether or not the disc has audio, fixes audio playing. 2025-02-13 23:37:27 +01:00
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
Jasmine Iwanek
d5d1d5c449 More cleanups to device structs 2025-02-08 01:28:25 -05: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
2d7fb72830 CD-ROM Image: close log before closing the file, fixes segmentation fault on image unload. 2025-01-28 23:22:06 +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
Jasmine Iwanek
49f5c358d8 Revert two fixes as batty has that covered 2025-01-11 04:37:18 -05:00
Jasmine Iwanek
035b8deee2 Random warning fixes 2025-01-11 00:08:26 -05: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
7ad3b81058 Rewritten the CD-ROM image handling and Cue sheet parsing, also fixes crashes when using VISO. 2025-01-02 22:38:10 +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
593d09b9ec CD-ROM: Fix track starting address calculation. 2024-11-20 00:29:02 +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
Jasmine Iwanek
f4b63caf0b One line per file in CmakeLists.txt 2024-09-04 18:34:06 -04:00
Jasmine Iwanek
7d73eb8400 Correctly devbranch mitsumi CDROM 2024-08-09 20:10:27 -04:00
Jasmine Iwanek
5b922c4747 Cleanups to logging in cdrom_image_backend.c 2024-08-07 01:07:51 -04:00
OBattler
5912a88a1b Fixed initializations in the CD-ROM code, fixes #4653. 2024-07-25 19:05:05 +02:00
Cacodemon345
94c44da4d1 Add support for using directories and .iso files within CUE sheets
Add support for big-endian binary files

Remove unused is_dir member
2024-07-17 13:34:15 +06:00
Cacodemon345
4dd4d2e6e1 A bit of more fixes 2024-07-17 13:34:15 +06:00
Cacodemon345
138059ff45 libsndfile support 2024-07-17 13:34:15 +06:00
OBattler
382b941ff9 CD-ROM image backend: Add the 8-byte skip also to ISO image loading. 2024-06-15 17:40:41 +02:00
OBattler
bf105c6f29 CD-ROM image backend: Skip 8 bytes on every sector on non-raw CD-XA Mode 2 images. 2024-06-15 17:27:19 +02:00
OBattler
6df49cc8a9 Merge branch 'master' of https://github.com/86Box/86Box 2024-06-15 16:59:45 +02:00
OBattler
b997b9df3e CD-ROM image backend: Fix handling of CD-XA Mode 2 Form 1 images with a sector size of 2336. 2024-06-15 16:59:02 +02:00
RichardG867
05226efe3d VISO: Type flexibility and macro cleanups 2024-06-14 00:50:08 -03:00
RichardG867
7fd04ad942 VISO: Fix disc corruption caused by >2GB files on Windows 2024-06-13 23:53:03 -03:00
Jasmine Iwanek
193838b7c2 Fix several uninitialized variables 2024-06-11 21:01:47 -04:00