summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/dsk_dsk.cpp
Commit message (Collapse)AuthorAgeFilesLines
* util/ioprocs.cpp: Added wrappers for common patterns. (#11608) Vas Crabb2024-02-251-12/+11
| | | | | emu/diimage.h: Removed fread overloads that allocate memory for output. util/core_file.cpp: Changed output size of load to size_t.
* Floppy format API refinements AJR2023-10-081-7/+7
| | | | | - Add noexcept to format information overrides and several simple floppy_image accessors. - Be more const-correct and use references instead of raw pointers wherever applicable. In particular, floppy_image_device::load and floppy_image_device::save now take a reference to floppy_image rather than a pointer, const-qualified in the latter case.
* formats: Use multibyte.h functions in more files AJR2023-09-171-2/+2
|
* imageutl.h: Retire pick_integer_[bl]e and place_integer_[bl]e in favor of ↵ AJR2023-09-171-2/+3
| | | | | | the simpler functions in multibyte.h * multibyte.h: Add constexpr for getters and noexcept for all functions
* d88_dsk.cpp, dsk_dsk.cpp: Mitigate against rot in legacy floppy code AJR2023-02-121-7/+12
|
* misc: remove unused variables that may give compiler warning hap2022-08-231-2/+0
|
* floppy: revisit the identify returns Olivier Galibert2022-03-301-2/+2
|
* floppy: remove the intermediate allocator Olivier Galibert2022-03-301-1/+1
|
* Constify the floppy image handling interface Olivier Galibert2022-03-301-2/+2
|
* Formats-related refactoring AJR2021-09-111-0/+1
| | | | | | - Remove opresolv.h from emu.h and some other base headers - Split legacy floppy image class into a separate file - Clean up a lot of #includes in src/lib and src/tools/imgtool
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-221-14/+21
| | | | | | | | | 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.
* Provide the variants to the floppy formats Olivier Galibert2021-01-091-2/+2
|
* dsk_dsk.cpp: be nice and allow to use DS images with SS drives (nw) MetalliC2020-05-261-2/+2
|
* use C++ library includes (nw) firewave2020-01-221-2/+2
|
* dsk_dsk.cpp: Surpass some copy-protected tracks AmatCoder2019-07-061-1/+25
| | | | Fix MT 06716
* flopimg.h: implemented threshold to accept disk images with a few excess and ↵ Joakim Larsson Edstrom2019-04-111-1/+16
| | | | empty tracks at the end used by HFE and DSK loaders for now
* (nw) Clean up the mess on master Vas Crabb2019-03-261-0/+6
| | | | | | | | | | | | | This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at 598cd5227223c3b04ca31f0dbc1981256d9ea3ff. Before pushing, please check that what you're about to push is sane. Check your local commit log and ensure there isn't anything out-of-place before pushing to mainline. When things like this happen, it wastes everyone's time. I really don't need this in a week when real work™ is busting my balls and I'm behind where I want to be with preparing for MAME release.
* Revert "conflict resolution (nw)" andreasnaive2019-03-251-6/+0
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* dsk_dsk.cpp: Avoid segfault if double sided DSK image is loaded on simple ↵ AmatCoder2019-03-191-0/+6
| | | | | | sided disk device MAME crashed if user was trying to load a dsk image with more heads or tracks than disk device supports. Now the error 'Incompatible image format' is raised.
* einstein: Software list items promoted to working: Theatre Europe Dirk Best2018-12-291-1/+2
| | | | | | | | | | | | The existing disk image was replaced by a new one created from the master disk. dsk_dsk: Increase maximum cell count This allows for slightly out of spec disk images to run, like Theatre Europe on the Einstein. [Lord Sméagol (Carl Lloyd-Parker)]
* dsk_dsk.cpp: Avoid to use uninitialized booleans AmatCoder2018-11-011-4/+2
| | | | Fix MameTesters #07134. Thanks to Klez for testing.
* dsk_dsk.cpp: sectors must be read even if it contains Deleted Mark AmatCoder2018-09-191-3/+3
| | | | | FDC will read the data if SK bit is not set. Fixes MameTesters bug #07081
* CPC DSK format: also check status bits in SR2 (nw) (#3546) Sergey Svishchev2018-05-101-2/+5
|
* dsk_dsk: Don't segfault on empty tracks (fixes einstein 4game) Dirk Best2017-10-251-0/+5
|
* dsk_dsk format: propagate CRC error flags Sergey Svishchev2017-02-131-2/+6
|
* more TRUE/FALSE cleanup (nw) Miodrag Milanovic2016-10-221-9/+9
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-43/+43
| | | | | 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
* for bool type use true and false (nw) Miodrag Milanovic2016-07-311-2/+2
|
* clang-modernize part 5 Miodrag Milanovic2015-12-041-3/+3
|
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+436