summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/cdrom.cpp
Commit message (Collapse)AuthorAgeFilesLines
* cdrom: fixed wrong track number in error messages [Robbbert] hap2025-02-211-14/+24
|
* util/cdrom.cpp: Change fprintf(stderr, ...) calls to osd_printf_error AJR2024-11-081-3/+3
|
* -util/cdrom.cpp: Fixed issues with CUE, TOC and GDI parsers. (#12948) 9871238791132024-11-091-429/+506
| | | | | | | * Rewrote GDI parser to be more robust and identify more kinds of invalid input. * Don't ignore the last line in CUE and TOC files if there is no terminating newline. * Use osd_printf_ family functions for output. -tools/chdman.cpp: Added a sink for osd_printf_ family function output.
* machine/t10mmc.cpp: Added stub CD-TEXT TOC read; util/cdrom.cpp: Handle ↵ 9871238791132024-11-091-1/+37
| | | | | | | control flags in TOC files. (#12954) * machine/t10mmc.cpp: Return dummy data for CD-TEXT format TOC read. * machine/t10mmc.cpp: Fixed bug in track transition. * util/cdrom.cpp: Handle track type and serial copy management flags in TOC file input.
* Cleanup: Vas Crabb2024-05-221-71/+76
| | | | | * olympia/dday.cpp: Correctly size the inappropriately named "color RAM". * util/cdrom.cpp, formats/fs_fat.cpp: More const, less copying.
* util/cdrom, machine/t10mmc: Add preliminary support for multisession ↵ 9871238791132024-05-121-128/+300
| | | | | | | | | | | CD-ROMs, indexes, and track flags (#12201) * util/cdrom: Refactoring * util/cdrom: Read all indexes from cue files * util/cdrom: Read in track flags from cues * util/cdrom: Multisession support for cues * machine/t10mmc: Playback from current head, other misc cleanup * machine/t10mmc: Implement T10MMC_CMD_MECHANISM_STATUS * machine/t10mmc: Implement TOC_FORMAT_FULL_TOC, TOC_FORMAT_SESSIONS, and return proper indexes for T10MMC_CMD_READ_SUB_CHANNEL
* util/cdrom.cpp: Zero entire output TOC structure in ↵ MetalSlug2024-04-091-1/+2
| | | | | cdrom_file::parse_metadata. (#12219) Fixes issues with fields that are not explicitly assigned in all situation.
* util/cdrom.cpp: Refactored parse_cue and parse_gdicue (should fix GitHub ↵ 9871238791132024-03-071-466/+157
| | | | | | | | | | #12081). (#12087) This should greatly improve data integrity when creating and extracting GD-ROM images. * util/cdrom.cpp: Refactored parse_cue to handle GD-ROMs. * util/cdrom.cpp: Don't discard any data from GD-ROM cue/bin input including pre-gap data. * tools/chdman.cpp: Fixed splitframes handling. * tools/chdman.cpp: Added warning when extracting GD-ROM CHDs to cue/bin format.
* util/ioprocs.cpp: Added wrappers for common patterns. (#11608) Vas Crabb2024-02-251-4/+6
| | | | | emu/diimage.h: Removed fread overloads that allocate memory for output. util/core_file.cpp: Changed output size of load to size_t.
* util/cdrom.cpp: Removed unreachable additional handler for MODE2/2336 ↵ stonedDiscord2024-02-061-5/+0
| | | | tracks. (#12012)
* util/cdrom.h: Fixed size of track info array. Vas Crabb2024-01-261-26/+1
| | | | | Also made it possible to enable VERBOSE in cdrom.cpp without link errors.
* util/cdrom.cpp: Don't strip pregaps from Redump GD-ROM files (#11913) Maxime Gauduin2024-01-061-44/+1
|
* avhuff.cpp, cdrom.cpp, msdib.cpp, unzip.cpp, vbiparse.cpp: Use multibyte.h ↵ AJR2023-09-171-21/+7
| | | | functions
* Add vendor-specific Read TOC command for Apple SCSI CD-ROM drive AJR2023-03-091-4/+3
|
* cdrom: Pass phys flag to read_partial_sector in read_subcode (#10231) 9871238791132022-08-151-2/+3
|
* srcclean in preparation for 0.243 Vas Crabb2022-04-241-14/+14
|
* cdrom.cpp: Bothering by integer types AJR2022-04-011-1/+1
|
* cdrom.cpp: Clean up code somewhat AJR2022-04-011-185/+184
| | | | | | - Use std::string_view for filename parameters - Use ioprocs rather than core_file - Reduce commenting out of miscellaneous logging
* cdrom_file: classify. Could use more internal work, but it's a step Olivier Galibert2022-04-011-527/+2060
|
* -Significant updates to the CD-i driver [Ryan Holtz] (#9102) MooglyGuy2022-01-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | -mcd212: Assorted changes. [Ryan Holtz] * Replaced verboselog with logmacro. * Corrected end-of-line region control handling, fixing garbage in The Apprentice. * Fixed screen bitmap handling to be more in line with MAME standards. * Simplified region-control handling. * Removed historical reliance on debug machine switches. * Converted to use a map() function rather than an internal switch. * Converted to use dipalette and rgb_t internally instead of separate CLUT arrays. * Optimized by replacing rgb_t usage with uint32_t values. * Optimized by calculating plane transparency on the fly. * Templatized mix_lines to reduce inner-loop branching. * Fixed a clamping issue with pre-calculated DYUV limits. * Reduce effective color depth back to 6:6:6 to match hardware. -cdrom: Allow recognizing CDI/2352 in cuesheets. [Ryan Holtz] -cdic: Various audio-related changes. [Ryan Holtz] * Attempt to descramble sectors that don't initially appear sensible. * Added support for playing CDDA sectors. * Fixed faulty logic in TOC processing.
* util: Further API cleanups: (#8661) Vas Crabb2021-10-051-2/+5
| | | | | * Turned `core_file` into an implementation of `random_read_write`. * Turned PNG errors into a standard error category. * Added a helper for generating what look like derived classes on-the-fly.
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-221-45/+46
| | | | | | | | | Added more modern generic I/O interfaces with implementation backed by stdio, osd_file and core_file, replacing io_generic. Also replaced core_file's build-in zlib compression with a filter. unzip.cpp, un7z.cpp: Added option to supply abstract I/O interface rather than filename. Converted osd_file, core_file, archive_file, chd_file and device_image_interface to use std::error_condition rather than their own error enums. Allow mounting TI-99 RPK from inside archives.
* util/cdrom.cpp: Disable debug log message when parsing TOC. Vas Crabb2021-04-241-24/+20
| | | | Also some miscellaneous cleanup/consistency.
* Miscellaneous formatting adjustments Vas Crabb2021-03-311-5/+6
|
* util/cdrom.cpp: Return index 1/start of track data instead of index 0/start ↵ 9871238791132021-03-311-22/+50
| | | | | | | | of pregap data in generated TOC. (#7878) * Add a pre-calculated field for data from current logofs to end of track. * Removed pregap adjustment from FM Towns code. * Added pregap adjustment so track ends when audio data ends in PSX CD player. * Fixed pce_cd load error.
* Low-level #include overhaul AJR2021-01-021-2/+2
| | | | | | | - vecstream.h: Revert changes made in aa29519528cb3dbdbfac56819bea670ed8c56c5d. The std::string_view conversion has been made a non-member function (util::buf_to_string_view) and moved to coretmpl.h. - strformat.h: Remove the using declaration importing util::string_format into the global namespace. It has been moved to emucore.h and a few tool sources; other references have been qualified. - osdcore.h: Split out file, directory and path classes and methods to a new header (osdfile.h), Doxygenizing the documentation comments. - Disaggregate many #includes that were including other standard or custom headers. emu.h now includes basically the same things that it did, but other headers have been streamlined; for instance, emucore.h no longer stealth-includes osdcore.h several ways.
* fixed some modernize-use-auto clang-tidy warnings (nw) (#6238) Oliver Stöneberg2020-01-301-2/+2
|
* use C++ library includes (nw) firewave2020-01-221-2/+2
|
* Renamed flipendian -> swapendian, as I spent minutes trying to find the ↵ mooglyguy2018-11-051-8/+8
| | | | functions to tell to another person who spent minutes trying to find the functions, and we refer to such functions as swapping just about everywhere else in the codebase, nw
* needed for external work (nw) MetalliC2017-08-261-0/+10
|
* cdrom: translate from 2336 to 2048 (nw) cracyc2017-04-101-0/+6
|
* Misc typo fixes. Jordi Mallach2016-10-271-1/+1
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-62/+62
| | | | | Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
* dynamic_buffer is just std::vector<UINT8> (nw) Miodrag Milanovic2016-10-211-1/+1
|
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-8/+8
| | | | to inline functions (nw)
* cdrom: declared (std::nothrow) some allocations. (nw) dankan18902016-04-151-3/+3
|
* * Remove confusing method from vectorstreams that hide base_ios method ↵ Vas Crabb2016-03-181-1/+1
| | | | | | | | | | | | | (fixes disassembly view) * Allow std::string to pass through core_file unmolested (reduces temporary allocations) * Make zip/7z instances of same class with uniform interface * zippath browsing is broken at the moment This is another step towards transparent archive support. It's now possible to access zip and 7z archives with the same code. Nothing is taking advantage of it yet. There's now some very similar code in fileio.cpp and clifront.cpp that could be folded at some point.
* Make osd_file a polymorphic class that's held with smart pointers Vas Crabb2016-03-141-2/+2
| | | | | | | | | | | | | | | Make avi_file a class that's held with smart pointers, encapsulate various AVI I/O structures Make zip_file and _7z_file classes rather than having free functions everywhere Hide zip/7z class implementation behind an interface, no longer need to call close() to send back to the cache Don't dump as much crap in global namespace Add solaris PTY implementation Improve variable expansion for SDL OSD - supports ~/$FOO/${BAR} syntax Rearrange stuff so the same things are in file module for all OSDs Move file stuff into its own module 7z/zip open and destruct are still not thread-safe due to lack of interlocks around cache access Directory functions still need to be moved to file module SDL OSD may not initialise WinSock on Windows
* Turn core_file into a proper class that gets cleaned up safely using unique_ptr Vas Crabb2016-03-061-6/+6
| | | | Subverted somewhat by chd_file class
* Replace strformat, strprintf and strcatprintf with type-safe steam_format ↵ Vas Crabb2016-02-281-4/+3
| | | | | | | | | and string_format Update MAME to use new function Instantiate ODR-used static constant members Make some of the UI code more localisable Remove use of retired functions in tools
* chd-cd: when chdman wants only the original sectors, give it only the ↵ arbee2015-12-271-12/+15
| | | | original sectors [R. Belmont]
* macro removal INLINE -> static inline (nw) Miodrag Milanovic2015-12-121-4/+4
|
* clang-modernize part 1 (nw) Miodrag Milanovic2015-12-031-24/+24
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+1646