summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/chdman.cpp
Commit message (Collapse)AuthorAgeFilesLines
* -osd/windows: Minimise full-screen windows on losing focus (#2997). Vas Crabb2021-01-211-5/+6
| | | | | | | | -osd/modules/osdwindow.cpp: Clean up window title formatting. * Show data type model in window title. * Moved window title formatting to a single place. -tools/chdman.cpp: Removed some unnecessary .c_str() calls.
* Much more core std::string_view modernization AJR2021-01-201-8/+8
| | | | | | | | | | | | | | | - 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
* Low-level #include overhaul AJR2021-01-021-3/+3
| | | | | | | - vecstream.h: Revert changes made in aa29519528cb3dbdbfac56819bea670ed8c56c5d. The std::string_view conversion has been made a non-member function (util::buf_to_string_view) and moved to coretmpl.h. - strformat.h: Remove the using declaration importing util::string_format into the global namespace. It has been moved to emucore.h and a few tool sources; other references have been qualified. - osdcore.h: Split out file, directory and path classes and methods to a new header (osdfile.h), Doxygenizing the documentation comments. - Disaggregate many #includes that were including other standard or custom headers. emu.h now includes basically the same things that it did, but other headers have been streamlined; for instance, emucore.h no longer stealth-includes osdcore.h several ways.
* support Redump extended bin/cue format for Dreamcast discs (#7422) nhand422020-12-171-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * initial check-in of Redump bin/cue support for Dreamcast GDI * correctly identifies multi-cue format and sets GDROM flags * creates a working Crazy Taxi chd from a Redump bin/cue * disabled debugging code and started tidying up * simple tool to compare chdman bin/cue and bin/gdi conversions, should be identical * final tidy up, the testing is going well * testing failed for Aero Dancing i (Japan), didnt zero last track * added some comments about .gdi compatibility * addressing review feedback on pull request #7422 * match TOSEC layout for Pattern I discs (3 tracks) * initial support for Pattern III discs * Pattern III discs now work and match TOSEC layout * reading datasize from wrong track, same result though * identify the GDI pattern, makes the code clearer * support for Pattern II and consecutive AUDIO tracks * use C99 type not POSIX type to build on Windows * support Redump tracks split across two .bin files
* Cleaned up bitmap API. Vas Crabb2020-09-271-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made const-qualified pixel accessors (pix, pixt, raw_pixptr) return const-qualified references/pointers to pixesl, and added non-const versions. This makes bitmap more like standard library containers where const protects the content as well as the dimensions. Made the templated pixt accessor protected - having it public makes it too easy to inadvertently get a pointer to the wrong location. Removed the pix(8|16|32|64) accessors from the specific bitmaps. You could only use the "correct" one anyway, and having the "incorrect" ones available prevented explicit instantiations of the class template because the static assertions would fail. You can still see the pixel type in the bitmap class names, and you can't assign the result of &pix(y, x) to the wrong kind of pointer without a cast. Added fill member functions to the specific bitmap template, and added a explicit instantiations. This allows the bitmap size check to be skipped on most bitmap fills, although the clipping check is still there. Also fixed a couple of places that were trying to fill an indexed 16-bit bitmap with rgb_t::black() exposed by this (replaced with zero to get the same net effect). The explicit template instantiations in the .cpp file mean the compiler can inline the function if necessary, but don't need to generate a local out-of-line body if it chooses not to. Extended the size of the fill value parameter in the base bitmap class to 64 bits so it works correctly for 64-bit bitmaps. Fixed places where IE15 and VGM visualiser weren't accounting for row bytes potentially being larger than width. Fixed an off-by-one in an HP-DIO card where it was treating the Topcat cursor right edge as exclusive. Updated everything to work with the API changes, reduced the scope of many variables, added more const, and replaced a few fill/copy loops with stuff from <algorithm>.
* chdman.cpp: GCC 9.3 is actually the cutoff point for legacy MSVC-style long ↵ Vas Crabb2020-08-231-2/+2
| | | | long format flags.
* looks like I64 size qualifier is only needed for MSYS64 GCC 9 and earlier (nw) Vas Crabb2020-06-021-2/+2
|
* chdman: support characters outside ASCII in command line arguments Vas Crabb2020-05-291-67/+72
|
* split was using sha1.h directly - fix that (nw) Vas Crabb2020-04-131-7/+6
|
* use C++ library includes (nw) firewave2020-01-221-7/+7
|
* chdman.cpp: Attempted fix for naive code (nw) AJR2019-09-061-1/+1
|
* chdman.cpp: Another superfluous temporary removed (nw) AJR2019-09-061-1/+0
|
* chdman: Clean up some archaic string code (nw) AJR2019-09-061-72/+58
|
* (nw) Clean up the mess on master Vas Crabb2019-03-261-1/+1
| | | | | | | | | | | | | 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-1/+1
| | | | | This reverts commit c24473ddff715ecec2e258a6eb38960cf8c8e98e, reversing changes made to 009cba4fb8102102168ef32870892438327f3705.
* chdman: fix GDI 2048 extraction MetalliC2019-01-251-1/+1
|
* Fix tools as well (nw) Miodrag Milanovic2017-05-151-1/+1
|
* chdman: Add support for hard disk templates and add some initial ones Dirk Best2017-01-071-1/+76
|
* Misc typo fixes. Jordi Mallach2016-10-271-1/+1
|
* NOTICE (TYPE NAME CONSOLIDATION) Miodrag Milanovic2016-10-221-151/+151
| | | | | 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
* dynamic_buffer is just std::vector<UINT8> (nw) Miodrag Milanovic2016-10-211-12/+12
|
* Fix chdman addmeta --valuefile by calling the correct write_metadata. [smf] smf-2016-10-091-1/+1
|
* unbreak large files in chdman after refactor Vas Crabb2016-08-011-4/+4
|
* std::min and std:max instead of MIN and MAX, also some more macros converted ↵ Miodrag Milanovic2016-07-311-8/+8
| | | | to inline functions (nw)
* chdman: fix remaining createcd 64bit issues MetalliC2016-07-241-4/+4
|
* compile fix (nw) Miodrag Milanovic2016-07-231-9/+9
|
* try one old good fix (nw) Miodrag Milanovic2016-07-231-1/+1
|
* Revert "fix building with gcc 6.1.0 by making it consistent with other ↵ Miodrag Milanovic2016-07-231-2/+5
| | | | | | source files. (nw)" This reverts commit 4423c242a693c37fbb4edc50f17c02cdf98abd88.
* fix building with gcc 6.1.0 by making it consistent with other source files. ↵ smf-2016-07-231-5/+2
| | | | (nw)
* Fixed stupid compilation error Nathan Woods2016-07-111-1/+1
|
* Removed some c_str() calls that are no longer necessary Nathan Woods2016-07-111-2/+2
|
* remove all usages of tagmap Miodrag Milanovic2016-06-181-1/+0
|
* ever since ↵ smf-2016-06-081-3/+0
| | | | https://github.com/mamedev/mame/commit/f0823886a66100e193d6eeb0402eb872a67fa07d the guess_chs() function adds dummy sectors to the image until it finds a valid CHS mapping, therefore the error can never be triggered (there is no exit condition on the outer loop) (nw)
* Ignore cylinders, heads and sectors from identify device data, based on the ↵ smf-2016-06-021-1/+1
| | | | ATA 5 specification. [smf]
* misc fixes (nw) Vas Crabb2016-05-281-1/+1
| | | | | | * fix a mismatched new[]/delete error in corealloc * _name massacre in corealloc while at it * add template/macro for delaring array with equivalent dimensions
* chdman: ignore ATA ident CHS values for > 8GB images MetalliC2016-05-251-0/+4
| | | | minor docs update
* chdman.cpp: fix for code that expects to be able to dereference a pointer ↵ Ivan Vangelista2016-04-271-15/+48
| | | | that it knows may be null (Vas Crabb)
* fix chdman extractcd track names (was foo.cue.bin instead of foo.bin) MetalliC2016-03-301-1/+1
|
* * Remove confusing method from vectorstreams that hide base_ios method ↵ Vas Crabb2016-03-181-8/+8
| | | | | | | | | | | | | (fixes disassembly view) * Allow std::string to pass through core_file unmolested (reduces temporary allocations) * Make zip/7z instances of same class with uniform interface * zippath browsing is broken at the moment This is another step towards transparent archive support. It's now possible to access zip and 7z archives with the same code. Nothing is taking advantage of it yet. There's now some very similar code in fileio.cpp and clifront.cpp that could be folded at some point.
* Fix chdman again for I64FMT on WIN32 Brandon Munger2016-03-141-1/+1
|
* chdman I64FMT fix for OSX, FreeBSD Brandon Munger2016-03-141-1/+1
|
* Fix I64FMT in chdman for Linux 64 bit Brandon Munger2016-03-141-0/+2
|
* Make osd_file a polymorphic class that's held with smart pointers Vas Crabb2016-03-141-61/+60
| | | | | | | | | | | | | | | 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
* Use type-safe printf for core_file and emu_file, surprisingly few knock-on ↵ Vas Crabb2016-03-091-19/+14
| | | | | | effects Properly fix up a couple of places I64FMT was being used, still more to deal with
* Removed I64FMT and SIZETFMT, one usage left in chdman.cpp (nw) Miodrag Milanovic2016-03-071-4/+10
|
* Turn core_file into a proper class that gets cleaned up safely using unique_ptr Vas Crabb2016-03-061-94/+84
| | | | Subverted somewhat by chd_file class
* Replace strformat, strprintf and strcatprintf with type-safe steam_format ↵ Vas Crabb2016-02-281-11/+8
| | | | | | | | | and string_format Update MAME to use new function Instantiate ODR-used static constant members Make some of the UI code more localisable Remove use of retired functions in tools
* fix compile of tools (nw) Miodrag Milanovic2016-01-111-9/+7
|
* Return std::string objects by value rather than pass by reference AJR2016-01-101-3/+2
| | | | | | - strprintf is unaltered, but strformat now takes one fewer argument - state_string_export still fills a buffer, but has been made const - get_default_card_software now takes no arguments but returns a string
* Cleanups and version bumpmame0169 Miodrag Milanovic2015-12-301-1/+0
|