summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/modules
Commit message (Collapse)AuthorAgeFilesLines
* formats, osd, util: Started refactoring file I/O stuff. (#8456) Vas Crabb2021-08-222-91/+22
| | | | | | | | | 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.
* tools/imgtool: Removed legacy object pool usage. (#8215) Aaron Giles2021-06-241-5/+2
|
* Better fix for vt_dsk.h header name clash AJR2021-05-261-1/+1
|
* Restore legacy pc_dsk floppy support for imgtool only AJR2021-03-291-2/+2
|
* imgtool: Neutralize the link error Olivier Galibert2021-03-021-1/+1
|
* Eliminate ARRAY_LENGTH template in favor of C++17's std::size AJR2021-02-1413-71/+70
| | | | | | | | | | * 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
* hp2640.cpp: Added tape emulation. (#7625) fulivi2021-01-122-2/+2
| | | | | * formats/hti_tape.cpp: Added support for Manchester encoded DC100 cassettes. * machine/hp2640_tape.cpp: added emulation of DC100 tape drives. * machine/hp_dc100_tape.cpp: Added unit name display.
* Enable GCC implicit fallthrough warning. Vas Crabb2020-11-151-0/+1
| | | | | | I've guessed whether break or [[fallthrough]] is appropriate. In cases where it looked particularly suspicious, I added a FIXME comment. All of these changes should be reviewed by someone familiar with the code.
* -Switch to building MAME as C++17. Vas Crabb2020-11-151-0/+1
| | | | | | | * 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
* Got rid of global_alloc/global_free. Vas Crabb2020-10-032-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | The global_alloc/global_free functions have outlived their usefulness. They don't allow consistently overriding the default memory allocation behaviour because they aren't used consistently, and we don't have standard library allocator wrappers for them that we'd need to use them consistently with all the standard library containers we're using. If you need to change the default allocator behaviour, you can override the new/delete operators, and there are ways to get more fine-grained control that way. We're already doing that to pre-fill memory in debug builds. Code was already starting to depend on global_alloc/global_free wrapping new/delete. For example some parts of the code (including the UI and Windows debugger) was putting the result of global_alloc in a std::unique_ptr wrappers without custom deleters, and the SPU sound device was assuming it could use global_free to release memory allocated with operator new. There was also code misunderstanding the behaviour of global_alloc, for example the GROM port cartridge code was checking for nullptr when a failure will actually throw std::bad_alloc. As well as substituting new/delete, I've made several things use smart pointers to reduce the chance of leaks, and fixed a couple of leaks, too.
* srcclean and cleanup (nw) Vas Crabb2020-06-211-8/+8
|
* Fix compile. (nw) couriersud2020-05-171-1/+1
|
* IMGTOOL: Added Dragon DOS module [tlindner] tim lindner2020-05-172-1/+1252
|
* Fix GCC 10 uninitialized struct warning (nw) arbee2020-05-021-0/+8
|
* fixes for clang 10.0.0 misleading indentation and xor used as a pow warnings ↵ smf-2020-04-231-1/+1
| | | | (nw)
* With permission from Dirk Best, apply 3-clause BSD license to common devices ↵ Vas Crabb2020-04-132-2/+2
| | | | | | and image handling (nw) Note that this does not apply to machine drivers or device implementations for a single machine family (e.g. Amiga chips or VTech expansion bus)
* use C++ library includes (nw) firewave2020-01-2213-39/+39
|
* srcclean (nw) Vas Crabb2019-10-261-1/+1
|
* Spelling (#5796) Zoë Blade2019-10-241-3/+3
| | | | | | | | | | | | * Tidy up comments * Fix typos * Fix spelling * Tidy * Tidy
* Fix spelling, tidy whitespace Zoë Blade2019-10-212-35/+34
|
* HP9845: TACO driver re-written (#5601) fulivi2019-09-092-23/+29
| | | | | | | | | * hp9825: fixed a bug in 9825t * hp9845: TACO driver re-written from scratch, DC100 tape separated into a new device, various adaptations * hp9845: "new TACO" renamed to just "TACO"
* [Imgtool] Add special characters support to Thomson BASIC (#5505) hadess2019-08-181-0/+245
| | | | | | * [Imgtool] Add reading accents support for Thomson BASIC * [Imgtool] Add writing accents support for Thomson BASIC
* Add BASIC Thomson tokenizer (#5479) hadess2019-08-131-7/+155
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Imgtool] Add write support for Thomson BASIC * [Imgtool] Fix passing --filter= to imgtool get command This command should work: imgtool get thom_fd inondation-d-additions.fd INONDATI.BAS TEST.BAS --filter=thombas7 as it matches the expected syntax: Usage: imgtool get <format> <imagename> <filename> [newname] [--filter=filter] [--fork=fork] but does not because imgtool fewer "maxargs". Increase the maximum number of arguments by 2 to cater for --filter and --fork being passed. * [Imgtool] Fix handling multiple tokens in BASIC tokenizer The line: 10 LIMIT$=STR$(LIMIT(N)) was not getting tokenised properly because the loop looking for tokens wasn't exited and consumed consecutive tokens. So $ was getting detected, token_shift and token_value were set, the cursor position got incremented, then = got detected on the next iteration of the loop. We should instead exit the loop, and write what we already have. Closes: #5478
* Use canonical spelling of "canonical" (nw) AJR2019-08-021-10/+10
|
* imgtool: MT 6693 wip, solves mess_hd issue (nw) Sergey Svishchev2019-06-021-1/+1
|
* fix build with clang, clean up some random stuff (nw) Vas Crabb2019-04-071-14/+9
|
* (nw) Clean up the mess on master Vas Crabb2019-03-261-0/+695
| | | | | | | | | | | | | 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-695/+0
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* srcclean (nw) Vas Crabb2019-02-241-62/+62
|
* imgtool: new read-only filesystem: DEC RT-11 (take 2) Sergey Svishchev2019-02-201-0/+695
|
* Renamed flipendian -> swapendian, as I spent minutes trying to find the ↵ mooglyguy2018-11-051-1/+1
| | | | functions to tell to another person who spent minutes trying to find the functions, and we refer to such functions as swapping just about everywhere else in the codebase, nw
* Fixes for Coverity "Resource leak" warnings (#3089) Oliver Stöneberg2018-01-211-1/+4
| | | | | | | | | | * lib/util/chdcd.cpp: fixed Coverity "Resource Leak" warning (nw) * src/lib/util/chdcd.cpp: fixed more Coverity "Resource Leak" warnings (nw) * tools/imgtool/modules/mac.cpp: fixed Coverity "Resource Leak" warnings (nw) * devices/bus/ti99/gromport/cartridges.cpp: fixed Coverity "Resource Leak" warning (nw)
* tools/imgtool/modules/fat.cpp: fixed Coverity "Double Free" warning (nw) firewave2018-01-201-0/+1
|
* srcclean (nw) Vas Crabb2017-10-222-12/+12
|
* Created a more flexible imgtool::datetime structure for use within Imgtool ↵ npwoods2017-10-1710-106/+104
| | | | | | | | | | | | | | (#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.
* Support for HP85 tapes added to imgtool (#2688) fulivi2017-10-031-0/+1196
|
* srcclean (nw) Vas Crabb2017-08-272-2/+2
|
* hp9845: re-factored hp9845_tape module of imgtool to use HTI format fulivi2017-08-161-238/+185
|
* Imgtool: Classic Mac: Made the logic for B&W icon able to handled ↵ Nathan Woods2017-08-021-27/+25
| | | | non-masked set pixels
* [Imgtool] C++-ification of imgtool_forkent structure Nathan Woods2017-08-023-42/+34
|
* Imgtool: Eliminated Imgtool-specific rand() function Nathan Woods2017-07-301-2/+5
|
* Introduced an 'util::arbitrary_clock' template class, to represent a clock ↵ npwoods2017-04-061-5/+10
| | | | | | | | | | | that "knows" when the epoch starts (#2010) * Introduced an 'util::arbitrary_clock' template class, to represent a clock that "knows" when the epoch starts Also: - Converted the NTFS filetime code to use util::arbitrary_clock - Converted the Mac datetime code to use util::atribrary_clock This is in preparation for a bigger change to Imgtool where I eliminate usage of time_t
* srcclean (nw) Vas Crabb2017-01-222-2/+2
|
* [Imgtool Mac] Adding support for MacRoman encoding Nathan Woods2017-01-141-0/+30
|
* Merge branch 'master' into imgtool_charconv_rewrite Nathan Woods2017-01-011-88/+127
|\
| * [Imgtool CoCo/RS-DOS] Miscellaneous cleanups and C++ modernization Nathan Woods2016-12-241-88/+127
| |
* | [Imgtool] Rewrote charconv; now an interface rather than an enumeration Nathan Woods2016-12-231-1/+1
|/
* Introduce u8/u16/u32/u64/s8/s16/s32/s64 Vas Crabb2016-11-191-1/+1
| | | | | | | | | | | | * New abbreviated types are in osd and util namespaces, and also in global namespace for things that #include "emu.h" * Get rid of import of cstdint types to global namespace (C99 does this anyway) * Remove the cstdint types from everything in emu * Get rid of U64/S64 macros * Fix a bug in dps16 caused by incorrect use of macro * Fix debugcon not checking for "do " prefix case-insensitively * Fix a lot of messed up tabulation * More constexpr * Fix up many __names
* Merge pull request #1543 from npwoods/imgtool_stream_open_smartpointer Vas Crabb2016-10-244-53/+26
|\ | | | | | | [Imgtool] Changed imgtool::stream::open*() to return imgtool::stream::ptr
| * [Imgtool] Changed imgtool::stream::open*() to return imgtool::stream::ptr Nathan Woods2016-10-224-53/+26
| | | | | | | | Updated quite a bit of client code that manually owned these pointers