summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/ioprocs.cpp
Commit message (Collapse)AuthorAgeFilesLines
* -machine/atastorage.cpp: Log disk geometry at verbose level (rather than ↵ Vas Crabb2024-06-221-2/+3
| | | | | | | | | | debug) so it can be shown in release builds. * Also use logmacro.h for compile-time configurable logging. -util/ioprocs.cpp: Added assertion to write_at equivalent to the one in write. * Checks for invalid results from underlying write call. * Also more const.
* -util/corefile.cpp: Fixed core_file failing to propagate write errors. Vas Crabb2024-06-211-1/+2
| | | | | | | | -util/ioprocs.cpp: Reverted gross hack. -osd/windows: Ensure WM_MOUSE* to WM_POINTER* event translation is always disabled. -tecmo/gaiden.cpp: Call base device_post_load(), use logmacro.h.
* util/ioprocs.cpp: Count zero actual bytes written on a write call as an ↵ arbee2024-06-041-1/+1
| | | | error. Fixes lock-up writing to a write-protected image. [R. Belmont, Peter Ferrie]
* util/ioprocs.cpp: Added wrappers for common patterns. (#11608) Vas Crabb2024-02-251-56/+143
| | | | | emu/diimage.h: Removed fread overloads that allocate memory for output. util/core_file.cpp: Changed output size of load to size_t.
* unidasm.cpp: Code cleanup AJR2022-08-181-1/+0
| | | | | | | | | - Use ioprocs methods and do a single read for normal input files (i.e. without an additional memcpy) - Compute pc_mask without using loop - Correct likely mistake in calculation of rounded_size - Split main function in two * ioprocs.cpp: Remove no longer needed #include
* Miscellaneous cleanup: Vas Crabb2022-02-201-2/+2
| | | | | | | | * emu/machine.cpp: Organised #included headers by module. * formats/jvc_dsk.cpp: Don't hide diagnostics behind compile-time switch. * util/ioprocsfilter.h: Added doxygen comments so one doesn't need to read the source to work semantics.
* util: Further API cleanups: (#8661) Vas Crabb2021-10-051-354/+0
| | | | | * 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-0/+1248
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.