Commit Graph

45495 Commits

Author SHA1 Message Date
Nathan Woods
f9db568146 Redo of split of src/emu/softlist.[cpp|h]
This is a redo of the split first submitted in #137, with the following differences:
* The newly refactored rom_entry data structure is used
* I've kept the refactored softlist code in src/emu, in order to defer the mechanical process of moving it
* I've kept includes of softlist[_dev].h out of diimage.h, so that changes to either do not trigger an emu.h recompilation
* Obviously, this goes against the latest master
2016-08-02 17:40:49 -04:00
Lord-Nightmare
159b73a708 typo (n/w) 2016-08-02 04:53:35 -04:00
Vas Crabb
8e07fb8117 Fix UTF-16 encode, pass UTF-16 to Windows character drawing (unfortunately still no nice speaker icon) 2016-08-02 18:24:14 +10:00
Vas Crabb
b7a7bb4e36 Don't fear the supplementation planes (nw) 2016-08-02 17:53:34 +10:00
Vas Crabb
996935a7cc fix overlong code detection in srcclean 2016-08-02 17:50:39 +10:00
Vas Crabb
bab0c40644 There we go, srcclean eats all our C++ now 2016-08-02 17:14:00 +10:00
Vas Crabb
d7f9370892 Make srcclean a bit more forgiving 2016-08-02 17:12:06 +10:00
Vas Crabb
e406a48885 Can srcclean clean layouts now? 2016-08-02 17:00:58 +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
2476380fe0 Merge pull request #1178 from npwoods/fix_softlist_by_slot
Fixed issue that prevented softlist items specified on devices from loading
2016-08-02 13:20:09 +10:00
Nathan Woods
af967d1ee7 Fixed issue that prevented softlist items specified on devices from loading
The issue is that I expected any softlist items passed to devices to be fully qualified (e.g. - apple2e:flop1:agentusa) when in reality, they might not be.  Therefore, I changed the regex that identifies softlist items passed to devices from:

	\\w+\\:\\w+\\:\\w+

to:

	\\w+(\\:\\w+\\:\\w+)?
2016-08-01 23:16:46 -04:00
Vas Crabb
3e22960ea4 default auto CR on LF for generic terminal (nw) 2016-08-02 12:05:40 +10:00
Vas Crabb
4a3e315648 migrate segasp to ROM_PARAMETER for board ID (nw) 2016-08-02 12:05:18 +10:00
Vas Crabb
9d89391384 Merge pull request #1177 from npwoods/more_stdstring_in_diimage
Converted more stuff in diimage to use std::string instead of 'const char *'
2016-08-02 11:13:38 +10:00
Nathan Woods
a7b00e3f6d Converted more stuff in diimage to use std::string instead of 'const char *' 2016-08-01 20:24:06 -04:00
MetalliC
a23a678b39 naomi: get rid of hacky rom_region, use rom_parameter instead 2016-08-02 10:14:22 +10:00
Vas Crabb
062017977d Merge pull request #1176 from npwoods/fix_romload_fill
Fixed breakage caused by a change in how the byte for ROM_FILL is represented with recent changes
2016-08-02 09:52:42 +10:00
Vas Crabb
77f1b1dca4 Merge pull request #1175 from npwoods/diimage_load_use_stdstring
Changed device_image_interface::load() to take 'const std::string &'
2016-08-02 09:52:13 +10:00
Nathan Woods
a2b0b2fbd4 Fixed breakage caused by a change in how the byte for ROM_FILL is represented with recent changes 2016-08-01 19:46:53 -04:00
Nathan Woods
764371c72c Changed device_image_interface::load() to take 'const std::string &' 2016-08-01 19:44:01 -04:00
Michael Zapf
19ff2946c5 ti99: Fixed stuck INT line in TMS9902; improve logging 2016-08-02 09:17:51 +10:00
Vas Crabb
871656c98c Merge pull request #1171 from npwoods/romentry_move_redo
Changes rom_entry from a struct to a class, storing its strings as stdd::string and separated the declaration into a new header
2016-08-01 22:51:23 +10:00
Nathan Woods
7384598c25 Added some default constructors to rom_entry(), and made it so changes to flags are done through a set_flags() accessor method 2016-08-01 08:48:23 -04:00
Vas Crabb
3c4643489f Merge pull request #1172 from npwoods/fix_diimage_load
Fixing a stupid merge error that broke image loading
2016-08-01 22:15:11 +10:00
Nathan Woods
2d2a193c02 Fixing a stupid merge error that broke image loading 2016-08-01 08:13:10 -04:00
Nathan Woods
ee302246c9 Changes rom_entry from a struct to a class, storing its strings as std::string and separated the declaration into a new header.
This should really be followed up by further changes to eliminate the usage of the weird accessor macros in favor of conventional C++
accessors
2016-08-01 08:01:34 -04:00
Vas Crabb
f04a3f1b9d Fix Qt debugger 2016-08-01 20:56:38 +10:00
Vas Crabb
15e7be7ac8 Turn image init/validate into scoped enums to avoid accidental casts to/from integer and boolean types
The image error should also be turned into a scoped enum - the menus were assuming it was the same thing as an init result
2016-08-01 18:47:22 +10:00
Vas Crabb
c4c05c9735 Merge pull request #1166 from npwoods/diimage_filetype_as_stdstring
This changes device_image_interface::filetype() to return 'const std::string &' instead of 'const char *'
2016-08-01 14:14:04 +10:00
Nathan Woods
c1a2ae9751 Missed this conversion to is_filetype() 2016-08-01 00:13:10 -04:00
Nathan Woods
59ca4d1763 1. Merge branch 'master' into diimage_filetype_as_stdstring
2.  Introduced is_filetype(), instead of normalizing filetype() to lower case
2016-07-31 23:52:57 -04:00
Vas Crabb
e2682ec4da Merge pull request #1161 from npwoods/separate_softlist_image_load
Changed device_image_interface::load() so that it is no longer responsible for both loading images and softlist items
2016-08-01 12:43:22 +10:00
Nathan Woods
7b7faffd01 Merge branch 'master' into separate_softlist_image_load 2016-07-31 22:42:27 -04:00
Vas Crabb
2c9966e3c9 Merge pull request #1167 from npwoods/make_diimage_members_private
Made a bunch of device_image_interface members private
2016-08-01 09:56:52 +10:00
Nathan Woods
9d1a53bef3 Made a bunch of device_image_interface members private (instead of protected) 2016-07-31 17:55:26 -04:00
Dirk Best
93093bbf3f apricot: add rtc support to keyboard 2016-07-31 22:29:56 +02:00
yz70s
8b9b6abc5a chihiro.cpp: game ghostsqu boots too (nw) 2016-07-31 22:18:46 +02:00
Nathan Woods
024f698364 Merge branch 'master' into separate_softlist_image_load 2016-07-31 15:20:49 -04:00
Nathan Woods
a4f24a24d3 This changes device_image_interface::filetype() to return 'const std::string &' instead of 'const char *'.
In the interests of removing burdens from client code, I also changed the following:
- filetype() will always return the file extension in lower case
- device_image_interface::filetype() will return the correct extension for files loaded as a part of softlists
- The code for extracting a file extension is now encapsulated in core_filename_extract_extension()

Client code has been updated
2016-07-31 15:06:06 -04:00
Miodrag Milanovic
91fcff1b6d cleanup (nw) 2016-07-31 20:29:24 +02:00
Miodrag Milanovic
22c7a00d57 reverse logic of IMAGE_VERIFY (nw) 2016-07-31 20:02:56 +02:00
Miodrag Milanovic
6f5e223853 for bool type use true and false (nw) 2016-07-31 20:02:56 +02:00
yz70s
49bd91f3de chihiro.cpp: try to boot scg06nt and wangmid (nw) 2016-07-31 19:54:00 +02: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
Miodrag Milanovic
eaa70ae031 cleanup of some conversions (nw) 2016-07-31 16:41:26 +02:00
Miodrag Milanovic
d0bf3221ea Merge branch 'master' of https://github.com/mamedev/mame 2016-07-31 16:18:19 +02:00
Vas Crabb
05444e3c00 unbreak large files in chdman after refactor 2016-08-01 00:17:52 +10:00