Commit Graph

410 Commits

Author SHA1 Message Date
Vas Crabb
3c47e78419 clang didn't like that... 2016-08-04 13:30:57 +10:00
Vas Crabb
938371b64f remove leftover crud (nw) 2016-08-03 13:56:52 +10:00
Vas Crabb
996935a7cc fix overlong code detection in srcclean 2016-08-02 17:50:39 +10:00
Vas Crabb
d7f9370892 Make srcclean a bit more forgiving 2016-08-02 17:12:06 +10:00
Vas Crabb
889ecdfd4f Let's give the new srcclean a spin... 2016-08-02 16:59:02 +10:00
Vas Crabb
a26a40445b Re-write srcclean to be cool with UTF-8 and C++14 [Vas Crabb] 2016-08-02 16:46:46 +10:00
Vas Crabb
0ceae26bb4 patch up on OSX 2016-08-01 01:37:39 +10:00
Vas Crabb
a0ce6c3b37 fix after pass through the diff 2016-08-01 01:20:03 +10:00
Miodrag Milanovic
f127621e13 made constexprs lower case and used constexpr for returning input value as well for rest of defines in osdcomm.h (nw) 2016-07-31 16:47:26 +02:00
Vas Crabb
05444e3c00 unbreak large files in chdman after refactor 2016-08-01 00:17:52 +10:00
Miodrag Milanovic
8594237ba6 imgtool fix (nw) 2016-07-31 15:49:22 +02:00
Miodrag Milanovic
185f5059fb algorithm-> utility where appropriate, fix imgtool (nw) 2016-07-31 15:37:37 +02: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
Vas Crabb
6a67de94f9 Fix up imgtool as well 2016-07-08 15:29:50 +10:00
Vas Crabb
d3b553728d Add support for showing will branch/will fall through comment on SPARC branches under the cursor
Disabled until we can get a hook to refress the instructions under PC when stepping
2016-06-27 16:59:42 +10:00
Vas Crabb
5cee9e9bc4 POSIX implementation for new directory read features, cleanup of Windows implementation, return directory handle as smart pointer, fix full build [Vas Crabb] 2016-06-25 03:35:23 +10:00
Vas Crabb
64f9a674d1 SPARC VIS 2+, VIS 3 and VIS 3B disassembler support [Vas Crabb]
* Note that this omits non-VIS OSA 2007/2011 features
* VIS 2+ ldtxa/ldtwa/sttwa still uses ldda/stda, using new mnemonics requires special-casing this instruction and checking ASI
2016-06-24 03:00:01 +10:00
Vas Crabb
32a75e7ae4 VIS I (UltraSPARC) and II (UltraSPARC III) for SPARC disassembler [Vas Crabb]
* Supports %gsr, all ops with exception of SIAM, and all ASI constants
* Use -arch sparcv9vis1 or -arch sparcv9vis2 with unidasm
2016-06-23 01:13:52 +10:00
Vas Crabb
af406e316a Add SPARC to unidasm [Vas Crabb] 2016-06-22 13:35:20 +10: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
Miodrag Milanovic
be67262fc2 INC -> HXX makes editors and code analyzers see it as C++ (nw) 2016-05-01 20:27:50 +02: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
hap
bac87f62fa sm510: added KB1013VK1-2 disasm 2016-04-11 21:45:26 +02:00
hap
80300e5cc6 sm500: added disasm 2016-04-07 20:45:57 +02:00
Miodrag Milanovic
cea094a3a3 moved aueffectutil to tools (nw) 2016-04-03 19:06:06 +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
b989ad9280 7zip romcmp 2016-03-19 00:23:09 +11: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
hap
f5caa4a869 tms1k: make disasm tables human-readable and added initial TP0320 2016-03-15 11:07:52 +01: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
a830ea7627 * Support *n conversion in stream_format/string_format
* Make stream_format return characters printed
* Add iostreams with std::vector storage
* Move to type-safe templates for logerror and popmessage
* Remove now-unnecessary I64FMT from calls to logerror/popmessage
* Put some lib/util stuff in util:: namespace
* Some fixes to Japanese translation
2016-03-01 06:52:36 +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
3abcaee63f Cleanups and version bump 2016-02-24 07:46:57 +01:00