summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/imgtool.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fixed a few coverity errors, several of which are real bugs. Vas Crabb2021-12-021-1/+1
|
* Minor changes to various drivers (#8880) shattered2021-11-251-1/+1
| | | | | | * Minor changes to various drivers (todo, comments, text strings). * ec1847: Moved to pc.cpp, it's a generic OEM clone. * Use proper name for serial/parallel ports card in ec1840 and ec1841. * superga2: Moved to arcade section, updated emulation status.
* Formats-related refactoring AJR2021-09-111-0/+5
| | | | | | - 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-4/+8
| | | | | | | | | 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: Retire legacy object pool, removing vestigial references. Vas Crabb2021-06-241-1/+1
| | | | | | | Thanks to AJR, Ivan Vangelista and Aaron Giles for helping make this possible. Also fixed debug build of imgtool.
* tools/imgtool: Removed legacy object pool usage. (#8215) Aaron Giles2021-06-241-55/+20
|
* Eliminate ARRAY_LENGTH template in favor of C++17's std::size AJR2021-02-141-3/+3
| | | | | | | | | | * 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
* Much more core std::string_view modernization AJR2021-01-201-1/+1
| | | | | | | | | | | | | | | - Remove corestr.h from emu.h; update a few source files to not use it at all - Change strtrimspace, strtrimrightspace and core_filename_extract_* to be pure functions taking a std::string_view by value and returning the same type - Change strmakeupper and strmakelower to be pure functions taking a std::string_view and constructing a std::string - Remove the string-modifying version of zippath_parent - Change tag-based lookup functions in device_t to take std::string_view instead of const std::string & or const char * - Remove the subdevice tag cache from device_t (since device finders are now recommended) and replace it with a map covering directly owned subdevices only - Move the working directory setup method out of device_image_interface (only the UI seems to actually use the full version of this) - Change output_manager to use std::string_view for output name arguments - Change core_options to accept std::string_view for most name and value arguments (return values are still C strings for now) - Change miscellaneous other functions to accept std::string_view arguments - Remove a few string accessor macros from romload.h - Remove many unnecessary c_str() calls from logging/error messages
* IMGTOOL: Added Dragon DOS module [tlindner] tim lindner2020-05-171-5/+6
|
* use C++ library includes (nw) firewave2020-01-221-2/+2
|
* Use canonical spelling of "canonical" (nw) AJR2019-08-021-53/+53
|
* srcclean (nw) Vas Crabb2017-10-221-4/+4
|
* Created a more flexible imgtool::datetime structure for use within Imgtool ↵ npwoods2017-10-171-2/+77
| | | | | | | | | | | | | | (#2263) * Created a more flexible imgtool::datetime structure for use within Imgtool This is intended to replace most usage of time_t * Changing the granularity of imgtool_clock from 1ms to 100ns, as per Vas' suggestion * Created arbitrary_datetime in timeconv.h to facilitate interpretation of datetime info I concluded that invoking std::mktime on manually assembled std::tm is bad, because it is indeterminate how the std::tm members may be "dominant". This required that I go further in imgtool, and update a number of drivers and eliminate the parameter of imgtool::datetime that takes std::tm.
* imgtool: hopefully fixed the "GET" command fulivi2017-08-241-6/+1
|
* Imgtool: Fixed features.supports_geticoninfo Nathan Woods2017-08-021-0/+2
|
* [Imgtool] C++-ification of imgtool_forkent structure Nathan Woods2017-08-021-3/+5
|
* Imgtool: Removed silly intermediate 'const char *' (nw) Nathan Woods2017-07-311-3/+2
|
* Imgtool: Vas Feedback: Changed another charconverter access (nw) Nathan Woods2017-07-301-3/+3
|
* Imgtool: Eliminated Imgtool-specific rand() function Nathan Woods2017-07-301-16/+0
|
* Imgtool: Merged normalize_filename() into cannonicalize_path(), ↵ npwoods2017-07-301-370/+148
| | | | C++-ification (#2527)
* Imgtool: Changed a pointer to a reference, and fixed a std::string(nullptr) bug Nathan Woods2017-07-241-6/+5
|
* srcclean (nw) Vas Crabb2017-05-281-2/+2
|
* [Imgtool] Cleanups to validity code, and transitioned to std::wcerr Nathan Woods2017-04-301-27/+27
| | | | Windows doesn't like mixing std::wc[out|err] and printf()
* srcclean (nw) Vas Crabb2017-01-221-2/+2
|
* Restyled some imgtoolerr_t typecasts Nathan Woods2017-01-141-48/+48
|
* Merge branch 'master' into imgtool_charconv_rewrite Nathan Woods2017-01-011-0/+37
|\
| * [Imgtool CoCo/RS-DOS] Miscellaneous cleanups and C++ modernization Nathan Woods2016-12-241-0/+37
| |
* | [Imgtool] Rewrote charconv; now an interface rather than an enumeration Nathan Woods2016-12-231-31/+27
|/
* Merge pull request #1827 from npwoods/remove_strncatz Vas Crabb2016-12-121-12/+0
|\ | | | | [Imgtool] Removed dead strncatz() function
| * [Imgtool] Removed dead strncatz() function Nathan Woods2016-12-111-12/+0
| |
* | Changed a number of declarations in Imgtool to use std::string instead of ↵ Nathan Woods2016-12-111-13/+14
|/ | | | 'const char *'
* srcclean (nw) Vas Crabb2016-11-271-2/+2
|
* Merge pull request #1660 from npwoods/imgtool_fix_implicit_partition R. Belmont2016-11-111-10/+6
|\ | | | | [Imgtool] Fixed a recently introduced bug which caused image types that do not support partitions to function incorrectly
| * [Imgtool] Fixed a recently introduced bug which caused image types that do ↵ Nathan Woods2016-11-111-10/+6
| | | | | | | | not support partitions to function incorrectly
* | No need for osd_malloc, osd_malloc_array and osd_free (nw) Miodrag Milanovic2016-11-111-11/+11
|/ | | | MALLOC_DEBUG not applicable anymore since we use new to allocate in 99.9% of cases
* Merge pull request #1542 from npwoods/imgtool_list_partitions Vas Crabb2016-10-241-31/+29
|\ | | | | [Imgtool] Consolidated logic for default implementation of imgtool::image::list_partitions()
| * Merge branch 'master' into imgtool_list_partitions Nathan Woods2016-10-231-98/+98
| |\
| * | [Imgtool] Consolidated logic for default implementation of ↵ Nathan Woods2016-10-221-31/+29
| | | | | | | | | | | | imgtool::image::list_partitions()
* | | Merge pull request #1543 from npwoods/imgtool_stream_open_smartpointer Vas Crabb2016-10-241-7/+3
|\ \ \ | |_|/ |/| | | | | [Imgtool] Changed imgtool::stream::open*() to return imgtool::stream::ptr
| * | [Imgtool] Changed imgtool::stream::open*() to return imgtool::stream::ptr Nathan Woods2016-10-221-7/+3
| |/ | | | | | | Updated quite a bit of client code that manually owned these pointers
* | srcclean (nw) Vas Crabb2016-10-231-90/+90
| |
* | TRUE/FALSE in tools section (nw) Miodrag Milanovic2016-10-221-9/+9
|/
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-53/+53
| | | | | 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
* [Imgtool] Changed imgtool::image::info() to use std::stream and ↵ Nathan Woods2016-10-171-6/+7
| | | | std::stringstream
* Merge pull request #1526 from npwoods/imgtool_directory_refs Vas Crabb2016-10-181-6/+6
|\ | | | | [Imgtool] Bulk change: 'imgtool::directory *' ==> 'imgtool::directory &'
| * [Imgtool] Bulk change: 'imgtool::directory *' ==> 'imgtool::directory &' Nathan Woods2016-10-171-6/+6
| |
* | [Imgtool] Modernized imgtool::image::list_partitions() Nathan Woods2016-10-171-16/+11
|/
* [Imgtool] Bulk change: 'imgtool::partition *' ==> 'imgtool::partition &' Nathan Woods2016-10-161-32/+32
|
* [Imgtool] Bulk change: 'imgtool::image *' ==> 'imgtool::image &' Nathan Woods2016-10-161-11/+11
|
* [Imgtool] Changed the create/open callbacks to take 'imgtool::stream &&' Nathan Woods2016-10-151-8/+5
| | | | They always took ownership of the stream; this just makes it official. Because the ownership would only traditionally happen if the open() or create() succeeded, I had to do a clumsy pattern where I call get() at the beginning of the callback to get the stream, but later on release() immediately prior to succeeding.