Commit Graph

15504 Commits

Author SHA1 Message Date
Aaron Giles
4976bd3d8b Remove color_prom parameter from PALETTE_INIT. Added code where
necessary to fetch the color_prom directly. Made PALETTE_INIT
into just another basic callback with an overridable palette_init()
in the driver_device, and support for arbitrary member functions via
MCFG_PALETTE_INIT_OVERRIDE.
2012-04-12 09:20:25 +00:00
Aaron Giles
332011b258 Merged watchdog back into running_machine.
Renamed driver overrides to MCFG_MACHINE/SOUND/VIDEO_START_OVERRIDE to
explicitly indicate they are overriding the default behavior.

Put liberatr back the way it used to be.
2012-04-12 08:33:20 +00:00
Aaron Giles
7d27b8c9ff Hooray for templates. 2012-04-12 07:35:57 +00:00
Aaron Giles
2c2fc07d6b Add assertions to catch situations where AM_SHARE is used twice.
Fix existing situations.
2012-04-12 06:01:56 +00:00
Miodrag Milanovic
cd6204dec0 Sync with MESS (no whatsnew) 2012-04-12 05:56:26 +00:00
Aaron Giles
9ecbecb503 Fixed bug where required shared pointers were not actually required.
Added optional/required_shared_ptr_array classes so that you can
populate an array of shared pointers. You provide a base tag name,
and each item in the array is populated with tag.n, where n is the
array index.

Updated a couple of drivers using arrays to either not use arrays
(where they weren't really providing any benefit) or to use the new
array classes.
2012-04-12 05:03:16 +00:00
Aaron Giles
d2812cfea3 Validity fixes. 2012-04-11 23:29:02 +00:00
Aaron Giles
5352ec77d8 Remove AM_SIZE entirely. AM_BASE_SIZE still exists, though. 2012-04-11 23:14:33 +00:00
Aaron Giles
4407afdb54 Removed unnecessary target() calls from shared_ptr references.
You still need target() if you want to cast to another pointer size.
This should be rare, and in fact fixing these pointed out a few
cases where code was missing BYTE/WORD/DWORD_XOR_* macros. I flagged
these with:

// ERROR: This cast is NOT endian-safe without the use of BYTE/WORD/DWORD_XOR_* macros!

For future fixing.
2012-04-11 16:29:24 +00:00
Miodrag Milanovic
986f1ef77d Sync with MESS (no whatsnew) 2012-04-11 14:48:01 +00:00
Miodrag Milanovic
8382d75558 Added target() on proper places (no whatsnew) 2012-04-11 14:20:08 +00:00
Miodrag Milanovic
1903be7870 Forgot to remove comments, again (no whatsnew) 2012-04-11 14:13:42 +00:00
Miodrag Milanovic
83f070ea3b AM_BASE and AM_BASE_SIZE to AM_SHARE by request from Aaron (no whatsnew) 2012-04-11 14:10:06 +00:00
Miodrag Milanovic
a1ee0822d6 fix compile (nw) 2012-04-11 13:04:53 +00:00
Miodrag Milanovic
e43f48e26c AM_BASE + AM_SIZE -> AM_BASE_SIZE for easier future cleanup (no whatsnew) 2012-04-11 08:16:37 +00:00
Miodrag Milanovic
1939843d3b non device audio board modernization (no whatsnew) 2012-04-11 07:56:42 +00:00
Miodrag Milanovic
3a2721fac1 fixed segas32.c (no whatsnew) 2012-04-11 06:49:23 +00:00
Miodrag Milanovic
6dd2f29e8b fixed digdug regression (no whatsnew) 2012-04-11 06:46:04 +00:00
Aaron Giles
3f65529bc4 Fix psikyo paletteram. 2012-04-11 04:33:24 +00:00
R. Belmont
477946c103 Removed unnecessary extra logging (nw) 2012-04-11 03:43:39 +00:00
R. Belmont
4468e3e7cc uPD1990AC: Only latch CSx bits when STB is high. [R. Belmont] 2012-04-11 03:40:16 +00:00
Aaron Giles
3bdeec4ad3 Whoops, broke some stuff. 2012-04-10 22:08:28 +00:00
Aaron Giles
53aca4fb0c Renamed device_irq_callback to device_irq_acknowledge_callback to
make its purpose clearer.

Added delegate support for interrupt callbacks, and made driver_device
variants of the generic interrupt helper callbacks. Did not convert
existing callers yet due to logistical issues.
2012-04-10 20:13:30 +00:00
Scott Stone
0f648fa34a Fix for compile warning (nw) 2012-04-10 18:40:19 +00:00
Michaël Banaan Ananas
e2c092b029 ..bit more complicated here, GCC sold crazy otto to midway, who then made minor modifications and turned it into mspacman 2012-04-10 17:07:13 +00:00
Michaël Banaan Ananas
ae330f0e65 quantum and foodf were developed by GCC, to settlle their conflict over GCC's Super Missile Attack 2012-04-10 17:02:54 +00:00
Miodrag Milanovic
1c23311d1a more modernization (no whatsnew) 2012-04-10 14:06:51 +00:00
Michaël Banaan Ananas
562d819135 MT 04764 fix 2012-04-10 12:34:21 +00:00
Miodrag Milanovic
4842e2ed92 forgot to remove comments (no whatsnew) 2012-04-10 12:22:02 +00:00
Miodrag Milanovic
1ad47aed94 mode modernization (no whatsnew) 2012-04-10 12:16:59 +00:00
Michaël Banaan Ananas
6a1a9779b1 nbmj8891.c: Fixed font graphics in hanamomo. [Takahiro Nogi] 2012-04-10 11:03:43 +00:00
Aaron Giles
93f5a06b68 Modernized ticket dispenser device. 2012-04-10 05:38:11 +00:00
Aaron Giles
06f296a55a Added the ability to specify member function driver callbacks for
machine/sound/video_start/reset. Changed liberatr as an example.
If a callback is specified, it is called in place of the corresponding
virtual method.

Not entirely sure I like this, so consider the example open for
discussion.
2012-04-10 04:39:20 +00:00
Scott Stone
4e01c83775 PGM, Scorpion 4/5 and Astra Fruit Machine [David Haywood]
- Slightly reworked some previous PGM submissions.
- Reorganized many bfm_sc4/sc5 sound roms.
- Added some notes, code and alternate revisions to astrafr.c.


New games marked as GAME_NOT_WORKING
------------------------------------
Knights of Valour: Aoshi Sanguo / Sangoku Senki: Aoshi Sanguo (ver. 202CN) Bootleg  [Unknown source]
2012-04-10 03:56:34 +00:00
R. Belmont
4243eab5c4 SDL: fix build on non-OS X targets (nw) 2012-04-09 22:47:42 +00:00
stephh
08df7d3c47 0123456789012345678901234567890123456789012345678901234567890123456789
kinstb, ffight2b, iron, denseib, sblast2b (snesb.c) [stephh] :
  - Fixed Dip Switches and Coin Inputs (after verification of the 5A22
    code)
2012-04-09 21:18:35 +00:00
Aaron Giles
5181e3ea96 Moved soundlatch helpers into driver.c and removed emu/audio/generic.c.
Normalized soundlatch helper function names.

Created delegates for machine/sound/video_start/reset callbacks and
added necessary infrastructure to use them going forward.
2012-04-09 20:23:26 +00:00
Wilbert Pol
6711559e87 SDL: Got rid of some code duplication between the _unix and _macosx implementations for sdlptty and sdlmisc. (nw) 2012-04-09 19:55:43 +00:00
Wilbert Pol
49f47372a8 Removed some leftovers from the conversion to a modern device (nw) 2012-04-09 19:22:46 +00:00
Aaron Giles
7f5529c2cd Templatized the palette generators and made naming consistent.
Moved video/generic flip screen management into the base
driver_device class and updated all callers.
2012-04-09 17:30:29 +00:00
Miodrag Milanovic
94d0358dd3 ddenlovr was missed in conversion due to name difference with h file (no whatsnew) 2012-04-09 14:16:12 +00:00
Miodrag Milanovic
12123cb805 modernization of some CUSTOM_INPUT's part 5 (no whatsnew) 2012-04-09 13:55:37 +00:00
Miodrag Milanovic
90d9f9ca06 modernization of some CUSTOM_INPUT's part 4 (no whatsnew) 2012-04-09 13:23:05 +00:00
Miodrag Milanovic
d1bd5be055 modernization of some CUSTOM_INPUT's part 3 (no whatsnew) 2012-04-09 12:55:12 +00:00
Miodrag Milanovic
aee1fd4cbe modernization of some CUSTOM_INPUT's part 2 (no whatsnew) 2012-04-09 12:25:58 +00:00
Miodrag Milanovic
38fd064151 modernization of some CUSTOM_INPUT's (no whatsnew) 2012-04-09 11:58:25 +00:00
Miodrag Milanovic
0aca27ceef Small cleanup (no whatsnew) 2012-04-09 08:09:07 +00:00
Aaron Giles
cf19a5897b MT04761: waveshrk regression. 2012-04-09 07:05:56 +00:00
Aaron Giles
82821bd714 MT04760: fix cobram3 regression. 2012-04-09 07:02:53 +00:00
Aaron Giles
49f8c938bf MT04758: fix gal3 regression. 2012-04-09 06:55:09 +00:00