summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/formats/upd765_dsk.cpp
Commit message (Collapse)AuthorAgeFilesLines
* util/ioprocs.cpp: Added wrappers for common patterns. (#11608) Vas Crabb2024-02-251-6/+4
| | | | | 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-11/+11
| | | | | - 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.
* floppy: revisit the identify returns Olivier Galibert2022-03-301-1/+1
|
* Constify the floppy image handling interface Olivier Galibert2022-03-301-10/+10
|
* floppy formats: correct sector extraction in wd/upd when extracted sector is ↵ Olivier Galibert2022-03-231-1/+1
| | | | smaller than expected
* Formats-related refactoring AJR2021-09-111-0/+4
| | | | | | - 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-7/+14
| | | | | | | | | 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.
* wd,upd: filter unsupported image formats Olivier Galibert2021-03-311-3/+5
|
* upd765_dsk, wd177x_dsk: Do not crash on damaged disks Olivier Galibert2021-02-261-6/+7
|
* woz: Add write Olivier Galibert2021-02-151-1/+1
| | | | some formats: Correct setting up of form factor and variant
* flopimg: Change the extracted bitstreams into vector<bool> Olivier Galibert2021-01-221-26/+18
| | | | | | | flopimg: Change the extracted sectors into vector<vector<uint8_t>> flopimg: Add a Mac sector extraction apple 3.5 gcr: Generalize track creation/extraction apple 3.5 gcr: Add a pure sector format
* Provide the variants to the floppy formats Olivier Galibert2021-01-091-3/+3
|
* formats: Get rid of more inappropriate use of emu_fatalerror (and fix some ↵ Vas Crabb2020-08-301-6/+5
| | | | spelling issues, etc. while I'm at it)
* (nw) formats: reduce dependencies on libemu Vas Crabb2020-04-131-1/+3
| | | | | | | | | | | The only link dependency left is emu_fatalerror. The format handlers really shouldn't be throwing fatal errors at all - they should just fail to load an image they can't handle. Maybe the interface should be enhanced to allow better propagation of errors up from the format handlers so they can be displayed in a UI rather than just logged. The only other two dependencies are on logmacro.h (pure macros) and the PAIR type from emucore.h (possibly worth moving to util).
* (nw) fix stuff: Vas Crabb2018-11-291-2/+1
| | | | | | | | * Add per-language compiler flag options to help with exotic setups * Get rid of a potention buffer overrun in NuBus image card * CHAR_WIDTH and LONG_WIDTH are preprocessor macros in limits.h with glibc if __GLIBC_USE (IEC_60559_BFP_EXT) is enabled - avoid using them as names * Make formats/upd765_dsk.h slightly safer with defualt initialisers for key format members * Don't rely on random BSS data being zero in imagedev/floppy.cpp
* Revert "wd177x_dsk, upd765_dsk: Fixed sector interleaving. [Curt Coder]" Olivier Galibert2017-02-161-1/+1
| | | | This reverts commit 16f79382aa892eb478813e3fc4b812e9e875fbaf.
* wd177x_dsk, upd765_dsk: Fixed sector interleaving. [Curt Coder] Curt Coder2017-02-161-1/+1
|
* pc_dsk: Handle 1.44MB images with 1,024-byte footer, which have turned up in ↵ Justin Kerk2017-01-081-2/+2
| | | | a couple places (nw)
* pc_dsk: Support 360K images with 512-byte header, found in some softlist ↵ Justin Kerk2016-12-291-3/+3
| | | | entries. [Justin Kerk]
* A round of spelling/typographical fixes to source comments (nw) Scott Stone2016-11-241-1/+1
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-13/+13
| | | | | 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
* Workaround for MT 06194 (potential segfault during floppy load) AJR2016-05-011-0/+6
|
* fixing some more override (nw) Miodrag Milanovic2015-12-061-2/+2
|
* - Fix PVS-Studio warning V562, "It's odd to compare a bool type value with therealmogminer@gmail.com2015-11-091-1/+1
| | | | a value of 0/1" [MooglyGuy]
* Rename *.c -> *.cpp in our source (nw) Miodrag Milanovic2015-11-081-0/+432