| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
stuff with hunks.
|
|
|
|
| |
Also mark error paths as unexpected to optimise against them.
|
|
|
|
|
|
|
|
|
| |
- Have metadata_find return std::error_condition instead of throwing an exception
- Replace the is_XXX predicates with check_is_XXX methods that return a std::error_condition, enabling improved error reporting for cdrom_image_device
- Retain read error information in chd_file_compressor
- Make a bunch of methods noexcept
This mostly restores the changes from cc772072fa635146b1df39a5694d2a8f8aa5a34f.
|
|
|
|
|
|
| |
throwing exceptions. [AJR]
Mostly salvaged from 901a68e2e0bb0d9178ffdb59e128718c1495250f.
|
|
|
|
|
| |
emu/diimage.h: Removed fread overloads that allocate memory for output.
util/core_file.cpp: Changed output size of load to size_t.
|
|
|
|
| |
#12023). (#12040)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Support input start/size options for createdvd.
Fixed not reporting an error on unrecognised command line options.
Fixed --fix/-f option for verify command not working.
Report an error when conflicting options are supplied (e.g. hard disk
template and C/H/S geometry, or input start offset in both bytes and
hunks). Previously the results would be unpredictable.
Detect more invalid combinations of options, and detect when output unit
size or hunk size doesn't match parent.
Changed order of processing options for createhd so using a template
cannot not inadvertently result in an invalid combination of sector size
and hunk size.
Don't require an explicit unit size for createraw if an output parent
CHD file is supplied.
Fixed an object leak in createcd.
|
|
|
|
|
|
| |
* 3rdparty/zstd: Added Zstandard compression library version 1.5.5.
* util/unzip.cpp: Added support for Zstandard compression (method 93).
* util/chdcodec.cpp: Added support for Zstandard compression.
* 3rdparty/flac: Always define NDEBUG to avoid log spam.
|
|
|
|
| |
This reverts commit 901a68e2e0bb0d9178ffdb59e128718c1495250f.
|
|
|
|
| |
This reverts commit cc772072fa635146b1df39a5694d2a8f8aa5a34f.
|
|
|
|
|
|
|
| |
- Change is_XXX to return std::error_condition instead of bool so that errors can be passed down the line; rename these to check_is_XXX to indicate that they are no longer basic predicates
- Change return type of internal function metadata_find to std::error_condition so that errors can be returned rather than thrown
* imagedev/cdromimg.cpp: Fix bug where cdrom_file object could be constructed twice in a row for CD-ROMs and once for DVDs
|
|
|
|
|
|
|
|
|
| |
- Return std::error_condition from set_raw_sha1 and set_parent_sha1 instead of throwing exceptions
- Fix a few cases where error codes could be swallowed
- Catch exceptions in is_XXX predicates
- Add const qualifier to SHA-1 extraction methods
- Add noexcept qualifier to a few internal functions
- Clean up various comments
|
|
|
|
|
|
|
|
|
|
|
| |
* util/chd.cpp: Allow caller to provide a helper for finding parent CHDs
and expose (recursive) missing parent status.
* emu/romload.cpp: Search parent systems/devices/software for parent
CHDs on encountering a delta CHD.
* emu/romload.cpp: Report error on delta CHDs when parent can't be
found.
* emu/romload.cpp: Check parents for matching CHDs with different names
for devices as well as systems and software.
|
|
|
|
| |
* multibyte.h: Add functions for reading and writing 48-bit values
|
|
|
|
| |
arcade-type drivers
|
| |
|
| |
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
* osdcomm.h: Move definition of EQUIVALENT_ARRAY to coretmpl.h
* sharc.cpp, gt64xxx.cpp, ym2413.cpp, gb_lcd.cpp, snes_ppu.cpp: Use STRUCT_MEMBER for save state registration
* gio/newport.cpp, megadrive/svp.cpp, nes_ctrl/bcbattle.cpp, arm7.cpp, tms9995.cpp, pckeybrd.cpp, sa1110.cpp, sa1111.cpp, jangou_blitter.cpp, vic4567.cpp: Use std::fill(_n) instead of memset
* emucore.h: Remove obsolete typedef
|
|
|
|
|
|
|
| |
* Updated sol2 to 3.2.2
* Updated pugixml to 1.10
* Increased minimum clang version to 6
* Cleaned up some stuff that can use new features
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixed some modernize-redundant-void-arg clang-tidy warnings (nw)
* fixed some modernize-use-bool-literals clang-tidy warnings (nw)
* fixed some modernize-use-emplace clang-tidy warnings (nw)
* fixed some performance-move-const-arg clang-tidy warnings (nw)
* fixed some readability-redundant-control-flow clang-tidy warnings (nw)
* fixed some readability-redundant-string-cstr clang-tidy warnings (nw)
* fixed some performance-unnecessary-value-param clang-tidy warnings (nw)
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
The +1 was previously needed becasue std::string::assign(char *) expects
the string to be NUL-terminated. The final NUL is not part of the
result. It's not needed when adjusting the length of the string
directly. Can people please be careful when refactoring, and alo when
reviewing pull requests? This stood out immediately.
|
|
|
|
| |
Writing into an std::string is now legal with C++11
|
| |
|
|
|
|
| |
CHDERR_FILE_NOT_WRITEABLE rather than CHDERR_UNSUPPORTED_VERSION if you try to open an old version for writing [smf]
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
| |
to inline functions (nw)
|
|
|
|
| |
hashing.[cpp|h]) into util::
|
|
|
|
| |
TODO: find out its real cause
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Subverted somewhat by chd_file class
|
| |
|
| |
|
| |
|
|
|