Commit Graph

43 Commits

Author SHA1 Message Date
AJR
969363be85 chdman: Clean up some archaic string code (nw) 2019-09-06 12:02:42 -04:00
Vas Crabb
97b6717027 (nw) Clean up the mess on master
This effectively reverts b380514764 and
c24473ddff, restoring the state at
598cd52272.

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.
2019-03-26 11:13:37 +11:00
andreasnaive
b380514764 Revert "conflict resolution (nw)"
This reverts commit c24473ddff, reversing
changes made to 009cba4fb8.
2019-03-25 23:13:40 +01:00
MetalliC
9d515e5f41 chdman: fix GDI 2048 extraction 2019-01-25 06:10:43 +02:00
Miodrag Milanovic
9be358832d Fix tools as well (nw) 2017-05-15 19:40:12 +02:00
Dirk Best
c6043bac17 chdman: Add support for hard disk templates and add some initial ones 2017-01-07 23:52:55 +01:00
Jordi Mallach
94220aa08b Misc typo fixes. 2016-10-27 13:45:15 +02:00
Miodrag Milanovic
ddb290d5f6 NOTICE (TYPE NAME CONSOLIDATION)
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
2016-10-22 13:13:17 +02:00
Miodrag Milanovic
d2e8f61149 dynamic_buffer is just std::vector<UINT8> (nw) 2016-10-21 12:35:05 +02:00
smf-
6623638c3b Fix chdman addmeta --valuefile by calling the correct write_metadata. [smf] 2016-10-09 22:40:42 +01:00
Vas Crabb
05444e3c00 unbreak large files in chdman after refactor 2016-08-01 00:17:52 +10:00
Miodrag Milanovic
9667c6a8cc std::min and std:max instead of MIN and MAX, also some more macros converted to inline functions (nw) 2016-07-31 14:41:02 +02:00
MetalliC
2cf35d78d8 chdman: fix remaining createcd 64bit issues 2016-07-24 17:01:18 +03:00
Miodrag Milanovic
0a95a35f0d compile fix (nw) 2016-07-23 19:14:45 +02:00
Miodrag Milanovic
38e8953add try one old good fix (nw) 2016-07-23 18:48:41 +02:00
Miodrag Milanovic
17080e6959 Revert "fix building with gcc 6.1.0 by making it consistent with other source files. (nw)"
This reverts commit 4423c242a6.
2016-07-23 18:47:39 +02:00
smf-
4423c242a6 fix building with gcc 6.1.0 by making it consistent with other source files. (nw) 2016-07-23 16:18:34 +01:00
Nathan Woods
130e05cc4e Fixed stupid compilation error 2016-07-11 08:26:49 -04:00
Nathan Woods
96066caca0 Removed some c_str() calls that are no longer necessary 2016-07-11 07:24:02 -04:00
Miodrag Milanovic
1d0e0ac12a remove all usages of tagmap 2016-06-18 15:32:15 +02:00
smf-
76430f9bc8 ever since f0823886a6 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) 2016-06-08 17:47:44 +01:00
smf-
f360cfe384 Ignore cylinders, heads and sectors from identify device data, based on the ATA 5 specification. [smf] 2016-06-02 10:38:48 +01:00
Vas Crabb
6b9c752850 misc fixes (nw)
* fix a mismatched new[]/delete error in corealloc
* _name massacre in corealloc while at it
* add template/macro for delaring array with equivalent dimensions
2016-05-28 15:10:28 +10:00
MetalliC
16d0839f76 chdman: ignore ATA ident CHS values for > 8GB images
minor docs update
2016-05-25 17:57:31 +03:00
Ivan Vangelista
00fd6ba0bd chdman.cpp: fix for code that expects to be able to dereference a pointer that it knows may be null (Vas Crabb) 2016-04-27 10:27:46 +02:00
MetalliC
677cfa86fd fix chdman extractcd track names (was foo.cue.bin instead of foo.bin) 2016-03-30 17:56:19 +03:00
Vas Crabb
100fa28671 * Remove confusing method from vectorstreams that hide base_ios method (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.
2016-03-18 19:32:10 +11:00
Brandon Munger
7a3a46e477 Fix chdman again for I64FMT on WIN32 2016-03-14 13:22:49 -04:00
Brandon Munger
33da5e88a0 chdman I64FMT fix for OSX, FreeBSD 2016-03-14 13:11:41 -04:00
Brandon Munger
63e253e2c5 Fix I64FMT in chdman for Linux 64 bit 2016-03-14 12:55:08 -04:00
Vas Crabb
42fbb9c396 Make osd_file a polymorphic class that's held with smart pointers
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
2016-03-14 18:55:00 +11:00
Vas Crabb
5aea0893a0 Use type-safe printf for core_file and emu_file, surprisingly few knock-on effects
Properly fix up a couple of places I64FMT was being used, still more to deal with
2016-03-09 23:04:12 +11:00
Miodrag Milanovic
e76d30243e Removed I64FMT and SIZETFMT, one usage left in chdman.cpp (nw) 2016-03-07 19:34:44 +01:00
Vas Crabb
73b44c9429 Turn core_file into a proper class that gets cleaned up safely using unique_ptr
Subverted somewhat by chd_file class
2016-03-06 21:49:56 +11:00
Vas Crabb
aec01e7407 Replace strformat, strprintf and strcatprintf with type-safe steam_format 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
2016-02-28 13:36:19 +11:00
Miodrag Milanovic
65458d447f fix compile of tools (nw) 2016-01-11 11:16:45 +01:00
AJR
115db95642 Return std::string objects by value rather than pass by reference
- 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
2016-01-10 16:36:18 -05:00
Miodrag Milanovic
4afd75e2fd Cleanups and version bump 2015-12-30 08:18:51 +01:00
MetalliC
7ae681b010 chdman info verbose metadata output (nw) 2015-12-26 17:49:12 +02:00
Miodrag Milanovic
3414b0166e tagmap_t to std::unordered_map or std::unordered_set where applicable (nw) 2015-12-09 21:14:13 +01:00
Miodrag Milanovic
1b0ec08af5 clang-modernize part 6 2015-12-04 10:29:21 +01:00
Miodrag Milanovic
5a2f80dcde clang-modernize part 5 2015-12-04 07:06:18 +01:00
Miodrag Milanovic
7c19aac60e Rename *.c -> *.cpp in our source (nw) 2015-11-08 12:56:12 +01:00