From 7c0db7b2a69c6d7477c60c4a8ed7db4ef64da6a4 Mon Sep 17 00:00:00 2001
From: hap
Date: Sat, 11 Apr 2015 15:10:16 +0200
Subject: [PATCH 1/4] prepare notes
---
src/mess/drivers/hh_hmcs40.c | 39 ++++++++++++++++++------
src/mess/drivers/hh_tms1k.c | 6 ++--
src/mess/drivers/hh_ucom4.c | 57 +++++++++++++++++++++++++++++++-----
3 files changed, 82 insertions(+), 20 deletions(-)
diff --git a/src/mess/drivers/hh_hmcs40.c b/src/mess/drivers/hh_hmcs40.c
index a3c364e0b9a..ace823af2c0 100644
--- a/src/mess/drivers/hh_hmcs40.c
+++ b/src/mess/drivers/hh_hmcs40.c
@@ -19,6 +19,7 @@
@27 HD38800A 1981, Bandai Packri Monster (DM-21Z)
*51 HD38800A 1981, Actronics(Hanzawa) Twinvader
@70 HD38800A 1982, Coleco Galaxian
+ @73 HD38800A 1982, Mattel Star Hawk
@23 HD38800B 1982, Tomy Kingman (THF-01II)
*24 HD38800B 1982, Actronics(Hanzawa) Wanted G-Man
@@ -43,6 +44,26 @@
***************************************************************************/
+
+
+
+
+/***************************************************************************
+
+ Mattel Star Hawk (manufactured in Japan)
+ * PCBs are labeled Kaken, PT-317B
+ * Hitachi HD38800A73 MCU
+ * cyan/red VFD display Futaba DM-41ZK, with partial color overlay
+
+ NOTE!: MESS external artwork is recommended
+
+***************************************************************************/
+
+
+
+
+
+
#include "emu.h"
#include "cpu/hmcs40/hmcs40.h"
#include "sound/speaker.h"
@@ -287,7 +308,7 @@ INPUT_CHANGED_MEMBER(hh_hmcs40_state::single_interrupt_line)
/***************************************************************************
Bambino Basketball - Dribble Away (manufactured in Japan)
- * boards are labeled Emix Corp. ET-05
+ * PCBs are labeled Emix Corp. ET-05
* Hitachi HD38750A08 MCU
* green VFD display Emix-106, with bezel overlay
@@ -399,7 +420,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Bandai Packri Monster (manufactured in Japan)
- * board label DM-21ZA2
+ * PCB label DM-21ZA2
* Hitachi HD38800A27 MCU
* cyan/red/green VFD display Futaba DM-21ZK 2B, with bezel overlay
@@ -731,7 +752,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Coleco Donkey Kong (manufactured in Taiwan)
- * board label Coleco Rev C 75790 DK
+ * PCB label Coleco Rev C 75790 DK
* Hitachi HD38820A45 MCU
* cyan/red VFD display Futaba DM-47ZK 2K, with color overlay
@@ -859,7 +880,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Coleco Galaxian (manufactured in Taiwan)
- * board label Coleco Rev A 75718
+ * PCB label Coleco Rev A 75718
* Hitachi HD38800A70 MCU
* cyan/red VFD display Futaba DM-36Z 2H, with color overlay
@@ -976,7 +997,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Coleco Pac-Man (manufactured in Taiwan)
- * board label Coleco 75690
+ * PCB label Coleco 75690
* Hitachi HD38820A28/29 MCU
* cyan/red VFD display Futaba DM-34Z 2A, with color overlay
@@ -1097,7 +1118,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Coleco Ms. Pac-Man (manufactured in Taiwan)
- * board label Coleco 911171
+ * PCB label Coleco 911171
* Hitachi HD38820A61 MCU
* cyan/red VFD display Futaba DM-60Z 3I, with color overlay
@@ -1501,7 +1522,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Tomy Kingman (manufactured in Japan)
- * boards are labeled THF-01II 2E138E01/2E128E02
+ * PCBs are labeled THF-01II 2E138E01/2E128E02
* Hitachi HD38800B23 MCU
* cyan/red/blue VFD display Futaba DM-65ZK 3A
@@ -1622,9 +1643,9 @@ MACHINE_CONFIG_END
/***************************************************************************
Tomy(tronic) Tron (manufactured in Japan)
- * boards are labeled THN-02 2E114E07
+ * PCBs are labeled THN-02 2E114E07
* Hitachi HD38800A88 MCU
- * cyan/red/green VFD display NEC FIP10AM24T
+ * cyan/red/green VFD display NEC FIP10AM24T no. 2-8 1
NOTE!: MESS external artwork is recommended
diff --git a/src/mess/drivers/hh_tms1k.c b/src/mess/drivers/hh_tms1k.c
index fe760123f50..6e3e26b4e0e 100644
--- a/src/mess/drivers/hh_tms1k.c
+++ b/src/mess/drivers/hh_tms1k.c
@@ -26,7 +26,7 @@
*MP2139 TMS1370? 1982, Gakken Galaxy Invader 1000
*MP2788 ? 1980, Bandai Flight Time (? note: VFD-capable)
@MP3226 TMS1000 1978, Milton Bradley Simon
- *MP3301 TMS1000 1979, Milton Bradley Bigtrak
+ *MP3301 TMS1000 1979, Milton Bradley Big Trak
*MP3320A TMS1000 1979, Coleco Head to Head Basketball
MP3403 TMS1100 1978, Marx Electronic Bowling -> elecbowl.c
@MP3404 TMS1100 1978, Parker Brothers Merlin
@@ -918,7 +918,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Entex Electronic Baseball 2
- * boards are labeled: ZENY
+ * PCBs are labeled: ZENY
* TMS1000 MCU, MP0923 (die labeled MP0923)
* 3 7seg LEDs, and other LEDs behind bezel, 1bit sound
@@ -1045,7 +1045,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Entex Electronic Baseball 3
- * boards are labeled: ZENY
+ * PCBs are labeled: ZENY
* TMS1100NLL 6007 MP1204 (die labeled MP1204)
* 2*SN75492N LED display driver
* 4 7seg LEDs, and other LEDs behind bezel, 1bit sound
diff --git a/src/mess/drivers/hh_ucom4.c b/src/mess/drivers/hh_ucom4.c
index bf972e13ed7..fbdbae3b3f5 100644
--- a/src/mess/drivers/hh_ucom4.c
+++ b/src/mess/drivers/hh_ucom4.c
@@ -12,6 +12,7 @@
@031 uPD553C 1979, Bambino Superstar Football (ET-03)
*042 uPD552C 1979, Tomy Space Attack
@048 uPD552C 1980, Tomy Tennis (TN-04)
+ @049 uPD553C 1979, Mego Mini-Vid Break Free
@055 uPD553C 1980, Bambino Laser Fight (ET-12)
*085 uPD650C 1980, Roland TR-808
*102 uPD553C 1981, Bandai Block Out
@@ -19,15 +20,55 @@
*128 uPD650C 1982, Roland TR-606
133 uPD650C 1982, Roland TB-303 -> tb303.c
@160 uPD553C 1982, Tomy Pac Man (TN-08)
+ @192 uPD553C 1982, Tomy Scramble (TN-10)
@202 uPD553C 1982, Epoch Astro Command
@206 uPD553C 1982, Epoch Dracula
- *209 uPD553C 1982, Tomy Caveman (TN-12)
+ @209 uPD553C 1982, Tomy Caveman (TN-12)
@258 uPD553C 1984, Tomy Alien Chase (TN-16)
(* denotes not yet emulated by MESS, @ denotes it's in this driver)
***************************************************************************/
+
+
+
+/***************************************************************************
+
+ Mego Mini-Vid Break Free (manufactured in Japan)
+ * PCB label Mego 79 rev F
+ * NEC uCOM-43 MCU, labeled D553C 031
+ * cyan VFD display Futaba DM-4.5 91
+
+ NOTE!: MESS external artwork is recommended
+
+***************************************************************************/
+
+
+/***************************************************************************
+
+ Tomy(tronic) Caveman (manufactured in Japan)
+ * PCBs are labeled TN-12 2E114E03
+ * NEC uCOM-43 MCU, labeled D553C 209
+ * cyan/red/green VFD display NEC FIP8AM20T no. 2-42
+
+ NOTE!: MESS external artwork is recommended
+
+***************************************************************************/
+
+
+/***************************************************************************
+
+ Tomy(tronic) Scramble (manufactured in Japan)
+ * PCBs are labeled TN-10 2E114E01
+ * NEC uCOM-43 MCU, labeled D553C 192
+ * cyan/red/green VFD display NEC FIP10CM20T no. 2-41
+
+ NOTE!: MESS external artwork is recommended
+
+***************************************************************************/
+
+
#include "emu.h"
#include "cpu/ucom4/ucom4.h"
#include "sound/speaker.h"
@@ -515,7 +556,7 @@ MACHINE_CONFIG_END
Epoch Astro Command (manufactured in Japan)
* PCB label 96111
* NEC uCOM-43 MCU, labeled D553C 202
- * cyan/red VFD display NEC FIP9AM20T NO.42, with color overlay
+ * cyan/red VFD display NEC FIP9AM20T no. 42-42, with color overlay (FIP=fluorescent indicator panel)
known releases:
- Japan: Astro Command
@@ -624,7 +665,7 @@ MACHINE_CONFIG_END
Epoch Dracula (manufactured in Japan)
* PCB label 96121
* NEC uCOM-43 MCU, labeled D553C 206
- * cyan/red/green VFD display NEC FIP8BM20T (FIP=fluorescent indicator panel)
+ * cyan/red/green VFD display NEC FIP8BM20T no. 2-42
known releases:
- Japan: Dracula House, yellow case
@@ -717,9 +758,9 @@ MACHINE_CONFIG_END
/***************************************************************************
Tomy(tronic) Tennis (manufactured in Japan)
- * board labeled TOMY TN-04 TENNIS
+ * PCB labeled TOMY TN-04 TENNIS
* NEC uCOM-44 MCU, labeled D552C 048
- * VFD display NEC FIP11AM15T
+ * VFD display NEC FIP11AM15T tube no. 0F
The initial release of this game was in 1979, known as Pro-Tennis,
it has a D553 instead of D552, with just a little over 50% ROM used.
@@ -876,9 +917,9 @@ MACHINE_CONFIG_END
/***************************************************************************
Tomy(tronic) Pac-Man (manufactured in Japan)
- * boards are labeled TN-08 2E108E01
+ * PCBs are labeled TN-08 2E108E01
* NEC uCOM-43 MCU, labeled D553C 160
- * cyan/red/green VFD display NEC FIP8AM18T
+ * cyan/red/green VFD display NEC FIP8AM18T no. 2-21
* bright yellow round casing
known releases:
@@ -984,7 +1025,7 @@ MACHINE_CONFIG_END
/***************************************************************************
Tomy Alien Chase (manufactured in Japan)
- * boards are labeled TN-16 2E121B01
+ * PCBs are labeled TN-16 2E121B01
* NEC uCOM-43 MCU, labeled D553C 258
* red/green VFD display NEC FIP9AM24T, with color overlay, 2-sided*
From 6b36c7ab225c4619dcb5ac33c34813a66277457e Mon Sep 17 00:00:00 2001
From: Miodrag Milanovic
Date: Sat, 11 Apr 2015 15:26:58 +0200
Subject: [PATCH 2/4] cstr() - > c_str() as preparation for move to std::string
(nw)
---
src/emu/addrmap.c | 2 +-
src/emu/bus/a7800/a78_slot.c | 6 +-
src/emu/bus/gba/gba_slot.c | 4 +-
src/emu/bus/intv/slot.c | 4 +-
src/emu/bus/megadrive/md_slot.c | 4 +-
src/emu/bus/msx_slot/cartridge.c | 2 +-
src/emu/bus/nes/nes_ines.inc | 2 +-
src/emu/cheat.c | 16 +--
src/emu/clifront.c | 40 +++---
src/emu/cpu/drcbex64.c | 4 +-
src/emu/cpu/drcbex86.c | 4 +-
src/emu/cpu/drcuml.c | 6 +-
src/emu/cpu/dsp16/dsp16.c | 6 +-
src/emu/cpu/dsp16/dsp16dis.c | 44 +++---
src/emu/cpu/dsp56k/dsp56dsm.c | 2 +-
src/emu/cpu/dsp56k/inst.h | 8 +-
src/emu/cpu/dsp56k/pmove.h | 8 +-
src/emu/cpu/dsp56k/tables.c | 8 +-
src/emu/cpu/mcs96/mcs96.c | 66 ++++-----
src/emu/cpu/score/score.c | 6 +-
src/emu/cpu/uml.c | 2 +-
src/emu/debug/debugcmd.c | 16 +--
src/emu/debug/debugcpu.c | 4 +-
src/emu/debug/dvbpoints.c | 4 +-
src/emu/debug/dvstate.c | 4 +-
src/emu/debug/dvwpoints.c | 4 +-
src/emu/debug/express.c | 16 +--
src/emu/digfx.c | 2 +-
src/emu/diimage.c | 22 +--
src/emu/disound.c | 10 +-
src/emu/emuopts.c | 6 +-
src/emu/emupal.c | 2 +-
src/emu/fileio.c | 6 +-
src/emu/image.c | 6 +-
src/emu/imagedev/cassette.c | 2 +-
src/emu/imagedev/diablo.c | 8 +-
src/emu/imagedev/harddriv.c | 8 +-
src/emu/info.c | 18 +--
src/emu/input.c | 12 +-
src/emu/ioport.c | 6 +-
src/emu/luaengine.c | 2 +-
src/emu/machine.c | 8 +-
src/emu/machine/fdc_pll.c | 2 +-
src/emu/machine/hdc9234.c | 80 +++++------
src/emu/machine/ram.c | 2 +-
src/emu/machine/upd765.c | 26 ++--
src/emu/machine/wd_fdc.c | 46 +++----
src/emu/mame.c | 6 +-
src/emu/mconfig.c | 2 +-
src/emu/memory.c | 14 +-
src/emu/rendlay.c | 4 +-
src/emu/romload.c | 78 +++++------
src/emu/save.c | 6 +-
src/emu/schedule.c | 4 +-
src/emu/screen.c | 2 +-
src/emu/softlist.c | 4 +-
src/emu/sound/disc_inp.inc | 2 +-
src/emu/tilemap.c | 2 +-
src/emu/ui/barcode.c | 2 +-
src/emu/ui/devopt.c | 4 +-
src/emu/ui/inputmap.c | 14 +-
src/emu/ui/mainmenu.c | 8 +-
src/emu/ui/menu.c | 2 +-
src/emu/ui/miscmenu.c | 2 +-
src/emu/ui/selgame.c | 2 +-
src/emu/ui/swlist.c | 2 +-
src/emu/ui/ui.c | 8 +-
src/emu/validity.c | 22 +--
src/emu/video.c | 8 +-
src/emu/webengine.c | 2 +-
src/ldplayer/ldplayer.c | 2 +-
src/lib/util/astring.h | 12 +-
src/lib/util/cdrom.c | 2 +-
src/lib/util/chd.h | 2 +-
src/lib/util/chdcd.c | 14 +-
src/lib/util/options.c | 16 +--
src/lib/util/options.h | 2 +-
src/mame/drivers/bfm_sc45_helper.c | 52 +++----
src/mame/machine/315-5881_crypt.c | 2 +-
src/mame/machine/naomim1.c | 2 +-
src/mess/drivers/aim65.c | 2 +-
src/mess/drivers/pegasus.c | 2 +-
src/mess/machine/spec_snqk.c | 2 +-
src/mess/machine/thomson.c | 4 +-
src/mess/machine/ti99/gromport.c | 4 +-
src/mess/machine/ti99/gromport.h | 2 +-
.../debugger/qt/deviceinformationwindow.c | 2 +-
src/osd/modules/debugger/qt/mainwindow.c | 4 +-
src/osd/modules/font/font_osx.c | 4 +-
src/osd/modules/font/font_sdl.c | 12 +-
src/osd/modules/lib/osdobj_common.c | 2 +-
src/osd/modules/lib/osdobj_common.h | 2 +-
src/osd/modules/render/d3d/d3dhlsl.c | 2 +-
src/osd/sdl/input.c | 34 ++---
src/osd/sdl/sdlmain.c | 2 +-
src/tools/chdman.c | 130 +++++++++---------
src/tools/nltool.c | 2 +-
src/tools/pngcmp.c | 12 +-
src/tools/regrep.c | 18 +--
src/tools/split.c | 26 ++--
src/tools/src2html.c | 36 ++---
101 files changed, 588 insertions(+), 588 deletions(-)
diff --git a/src/emu/addrmap.c b/src/emu/addrmap.c
index 8e0ef0b1919..9da36efa2e3 100644
--- a/src/emu/addrmap.c
+++ b/src/emu/addrmap.c
@@ -494,7 +494,7 @@ void address_map::uplift_submaps(running_machine &machine, device_t &device, dev
owner.subtag(tag, entry->m_read.m_tag);
device_t *mapdevice = machine.device(tag);
if (mapdevice == NULL) {
- throw emu_fatalerror("Attempted to submap a non-existent device '%s' in space %d of device '%s'\n", tag.cstr(), m_spacenum, device.basetag());
+ throw emu_fatalerror("Attempted to submap a non-existent device '%s' in space %d of device '%s'\n", tag.c_str(), m_spacenum, device.basetag());
}
// Grab the submap
address_map submap(*mapdevice, entry);
diff --git a/src/emu/bus/a7800/a78_slot.c b/src/emu/bus/a7800/a78_slot.c
index d1d6130ba26..1e667d32110 100644
--- a/src/emu/bus/a7800/a78_slot.c
+++ b/src/emu/bus/a7800/a78_slot.c
@@ -812,7 +812,7 @@ void a78_cart_slot_device::internal_header_logging(UINT8 *header, UINT32 len)
logerror( "==============\n\n" );
logerror( "\tTitle: %.32s\n", head_title);
logerror( "\tLength: 0x%X [real 0x%X]\n", head_length, len);
- logerror( "\tMapper: %s [0x%X]\n", cart_mapper.cstr(), head_mapper);
+ logerror( "\tMapper: %s [0x%X]\n", cart_mapper.c_str(), head_mapper);
logerror( "\t\tPOKEY: %s\n", BIT(head_mapper, 0) ? "Yes" : "No");
logerror( "\t\tSC Bankswitch: %s\n", BIT(head_mapper, 1) ? "Yes" : "No");
logerror( "\t\tRAM at $4000: %s\n", BIT(head_mapper, 2) ? "Yes" : "No");
@@ -827,7 +827,7 @@ void a78_cart_slot_device::internal_header_logging(UINT8 *header, UINT32 len)
}
else
logerror( "\n");
- logerror( "\tController 1: 0x%.2X [%s]\n", head_ctrl1, ctrl1.cstr());
- logerror( "\tController 2: 0x%.2X [%s]\n", head_ctrl2, ctrl2.cstr());
+ logerror( "\tController 1: 0x%.2X [%s]\n", head_ctrl1, ctrl1.c_str());
+ logerror( "\tController 2: 0x%.2X [%s]\n", head_ctrl2, ctrl2.c_str());
logerror( "\tVideo: %s\n", (head_ispal) ? "PAL" : "NTSC");
}
diff --git a/src/emu/bus/gba/gba_slot.c b/src/emu/bus/gba/gba_slot.c
index 78bb00bcd14..064bbb60add 100644
--- a/src/emu/bus/gba/gba_slot.c
+++ b/src/emu/bus/gba/gba_slot.c
@@ -307,7 +307,7 @@ int gba_cart_slot_device::get_cart_type(UINT8 *ROM, UINT32 len)
else if (!memcmp(&ROM[i], "SIIRTC_V", 8))
chip |= GBA_CHIP_RTC;
}
- osd_printf_info("GBA: Detected (ROM) %s\n", gba_chip_string(chip).cstr());
+ osd_printf_info("GBA: Detected (ROM) %s\n", gba_chip_string(chip).c_str());
// fix for games which return more than one kind of chip: either it is one of the known titles, or we default to no battery
if (gba_chip_has_conflict(chip))
@@ -364,7 +364,7 @@ int gba_cart_slot_device::get_cart_type(UINT8 *ROM, UINT32 len)
chip &= ~GBA_CHIP_RTC;
}
- osd_printf_info("GBA: Emulate %s\n", gba_chip_string(chip).cstr());
+ osd_printf_info("GBA: Emulate %s\n", gba_chip_string(chip).c_str());
switch (chip)
{
diff --git a/src/emu/bus/intv/slot.c b/src/emu/bus/intv/slot.c
index 621c4014bb2..231b291b153 100644
--- a/src/emu/bus/intv/slot.c
+++ b/src/emu/bus/intv/slot.c
@@ -328,7 +328,7 @@ int intv_cart_slot_device::load_fullpath()
}
else
{
- sscanf(extrainfo.cstr() ,"%d %d %d %d %d %d %d", &mapper, &rom[0], &rom[1], &rom[2],
+ sscanf(extrainfo.c_str() ,"%d %d %d %d %d %d %d", &mapper, &rom[0], &rom[1], &rom[2],
&rom[3], &ram, &extra);
//printf("extrainfo: %d %d %d %d %d %d %d \n", mapper, rom[0], rom[1], rom[2], rom[3], ram, extra);
@@ -483,7 +483,7 @@ void intv_cart_slot_device::get_default_card_software(astring &result)
if (hashfile_extrainfo(*this, extrainfo))
{
- sscanf(extrainfo.cstr() ,"%d %d %d %d %d %d %d", &mapper, &rom[0], &rom[1], &rom[2],
+ sscanf(extrainfo.c_str() ,"%d %d %d %d %d %d %d", &mapper, &rom[0], &rom[1], &rom[2],
&rom[3], &ram, &extra);
if (ram)
diff --git a/src/emu/bus/megadrive/md_slot.c b/src/emu/bus/megadrive/md_slot.c
index 5cc2c124ecb..168c23cb25e 100644
--- a/src/emu/bus/megadrive/md_slot.c
+++ b/src/emu/bus/megadrive/md_slot.c
@@ -1082,10 +1082,10 @@ void base_md_cart_slot_device::file_logging(UINT8 *ROM8, UINT32 rom_len, UINT32
}
logerror("Checksum: %X\n", checksum);
logerror(" - Calculated Checksum: %X\n", csum);
- logerror("Supported I/O Devices: %.16s\n%s", io, ctrl.cstr());
+ logerror("Supported I/O Devices: %.16s\n%s", io, ctrl.c_str());
logerror("Modem: %.12s\n", modem);
logerror("Memo: %.40s\n", memo);
- logerror("Country: %.16s\n%s", country, reg.cstr());
+ logerror("Country: %.16s\n%s", country, reg.c_str());
logerror("ROM Start: 0x%.8X\n", rom_start);
logerror("ROM End: 0x%.8X\n", rom_end);
logerror("RAM Start: 0x%.8X\n", ram_start);
diff --git a/src/emu/bus/msx_slot/cartridge.c b/src/emu/bus/msx_slot/cartridge.c
index 3ef1a45f3e8..57b2a668ac5 100644
--- a/src/emu/bus/msx_slot/cartridge.c
+++ b/src/emu/bus/msx_slot/cartridge.c
@@ -290,7 +290,7 @@ void msx_slot_cartridge_device::get_default_card_software(astring &result)
if (hashfile_extrainfo(*this, extrainfo))
{
int extrainfo_type = -1;
- if (1 == sscanf(extrainfo.cstr(), "%d", &extrainfo_type))
+ if (1 == sscanf(extrainfo.c_str(), "%d", &extrainfo_type))
{
static const struct { int extrainfo; int mapper; } extrainfo_map[] = {
//{ 0, NOMAPPER },
diff --git a/src/emu/bus/nes/nes_ines.inc b/src/emu/bus/nes/nes_ines.inc
index b99dea5cda2..d783715a029 100644
--- a/src/emu/bus/nes/nes_ines.inc
+++ b/src/emu/bus/nes/nes_ines.inc
@@ -392,7 +392,7 @@ void nes_cart_slot_device::call_load_ines()
}
else
{
- logerror("NES: [%s], Invalid mapinfo found\n", mapinfo.cstr());
+ logerror("NES: [%s], Invalid mapinfo found\n", mapinfo.c_str());
}
}
else
diff --git a/src/emu/cheat.c b/src/emu/cheat.c
index 1ccd40a7daf..7bc0308f705 100644
--- a/src/emu/cheat.c
+++ b/src/emu/cheat.c
@@ -540,7 +540,7 @@ void cheat_script::script_entry::save(emu_file &cheatfile) const
// output an output
else
{
- cheatfile.printf("\t\t\t
\n");
}
}
diff --git a/src/tools/split.c b/src/tools/split.c
index 02e546fce14..ec4a5434fcc 100644
--- a/src/tools/split.c
+++ b/src/tools/split.c
@@ -123,16 +123,16 @@ static int split_file(const char *filename, const char *basename, UINT32 splitsi
filerr = core_fopen(splitfilename, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_NO_BOM, &splitfile);
if (filerr != FILERR_NONE)
{
- fprintf(stderr, "Fatal error: unable to create split file '%s'\n", splitfilename.cstr());
+ fprintf(stderr, "Fatal error: unable to create split file '%s'\n", splitfilename.c_str());
goto cleanup;
}
// write the basics out
- core_fprintf(splitfile, "splitfile=%s\n", basefilename.cstr());
+ core_fprintf(splitfile, "splitfile=%s\n", basefilename.c_str());
core_fprintf(splitfile, "splitsize=%d\n", splitsize);
- printf("Split file is '%s'\n", splitfilename.cstr());
- printf("Splitting file %s into chunks of %dMB...\n", basefilename.cstr(), splitsize / (1024 * 1024));
+ printf("Split file is '%s'\n", splitfilename.c_str());
+ printf("Splitting file %s into chunks of %dMB...\n", basefilename.c_str(), splitsize / (1024 * 1024));
// now iterate until done
for (partnum = 0; partnum < 1000; partnum++)
@@ -150,7 +150,7 @@ static int split_file(const char *filename, const char *basename, UINT32 splitsi
compute_hash_as_string(computedhash, splitbuffer, length);
// write that info to the split file
- core_fprintf(splitfile, "hash=%s file=%s.%03d\n", computedhash.cstr(), basefilename.cstr(), partnum);
+ core_fprintf(splitfile, "hash=%s file=%s.%03d\n", computedhash.c_str(), basefilename.c_str(), partnum);
// compute the full filename for this guy
outfilename.printf("%s.%03d", basename, partnum);
@@ -160,11 +160,11 @@ static int split_file(const char *filename, const char *basename, UINT32 splitsi
if (filerr != FILERR_NONE)
{
printf("\n");
- fprintf(stderr, "Fatal error: unable to create output file '%s'\n", outfilename.cstr());
+ fprintf(stderr, "Fatal error: unable to create output file '%s'\n", outfilename.c_str());
goto cleanup;
}
- printf(" writing %s.%03d...", basefilename.cstr(), partnum);
+ printf(" writing %s.%03d...", basefilename.c_str(), partnum);
// write the data
actual = core_fwrite(outfile, splitbuffer, length);
@@ -273,7 +273,7 @@ static int join_file(const char *filename, const char *outname, int write_output
{
core_fclose(outfile);
outfile = NULL;
- fprintf(stderr, "Fatal error: output file '%s' already exists\n", outfilename.cstr());
+ fprintf(stderr, "Fatal error: output file '%s' already exists\n", outfilename.c_str());
goto cleanup;
}
@@ -281,12 +281,12 @@ static int join_file(const char *filename, const char *outname, int write_output
filerr = core_fopen(outfilename, OPEN_FLAG_WRITE | OPEN_FLAG_CREATE, &outfile);
if (filerr != FILERR_NONE)
{
- fprintf(stderr, "Fatal error: unable to create file '%s'\n", outfilename.cstr());
+ fprintf(stderr, "Fatal error: unable to create file '%s'\n", outfilename.c_str());
goto cleanup;
}
}
- printf("%s file '%s'...\n", write_output ? "Joining" : "Verifying", outfilename.cstr());
+ printf("%s file '%s'...\n", write_output ? "Joining" : "Verifying", outfilename.c_str());
// now iterate through each file
while (core_fgets(buffer, sizeof(buffer), splitfile))
@@ -302,7 +302,7 @@ static int join_file(const char *filename, const char *outname, int write_output
expectedhash.cpy(buffer + 5, SHA1_DIGEST_SIZE * 2);
infilename.cpy(buffer + 5 + SHA1_DIGEST_SIZE * 2 + 6).trimspace();
- printf(" Reading file '%s'...", infilename.cstr());
+ printf(" Reading file '%s'...", infilename.c_str());
// read the file's contents
infilename.ins(0, basepath);
@@ -310,7 +310,7 @@ static int join_file(const char *filename, const char *outname, int write_output
if (filerr != FILERR_NONE)
{
printf("\n");
- fprintf(stderr, "Fatal error: unable to load file '%s'\n", infilename.cstr());
+ fprintf(stderr, "Fatal error: unable to load file '%s'\n", infilename.c_str());
goto cleanup;
}
@@ -321,7 +321,7 @@ static int join_file(const char *filename, const char *outname, int write_output
if (computedhash != expectedhash)
{
printf("\n");
- fprintf(stderr, "Fatal error: file '%s' has incorrect hash\n Expected: %s\n Computed: %s\n", infilename.cstr(), expectedhash.cstr(), computedhash.cstr());
+ fprintf(stderr, "Fatal error: file '%s' has incorrect hash\n Expected: %s\n Computed: %s\n", infilename.c_str(), expectedhash.c_str(), computedhash.c_str());
goto cleanup;
}
diff --git a/src/tools/src2html.c b/src/tools/src2html.c
index 5ebe31ee71f..2f6d1a6ca6a 100644
--- a/src/tools/src2html.c
+++ b/src/tools/src2html.c
@@ -332,7 +332,7 @@ static int recurse_dir(int srcrootlen, int dstrootlen, astring &srcdir, astring
// create an index file
astring indexname;
- indexname.printf("%s%c%s", dstdir.cstr(), PATH_SEPARATOR[0], "index.html");
+ indexname.printf("%s%c%s", dstdir.c_str(), PATH_SEPARATOR[0], "index.html");
core_file *indexfile = create_file_and_output_header(indexname, tempheader, srcdir_subpath);
// output the directory navigation
@@ -402,7 +402,7 @@ static int recurse_dir(int srcrootlen, int dstrootlen, astring &srcdir, astring
// build the source filename
astring srcfile;
- srcfile.printf("%s%c%s", srcdir.cstr(), PATH_SEPARATOR[0], curlist->name.cstr());
+ srcfile.printf("%s%c%s", srcdir.c_str(), PATH_SEPARATOR[0], curlist->name.c_str());
// if we have a file, output it
astring dstfile;
@@ -420,9 +420,9 @@ static int recurse_dir(int srcrootlen, int dstrootlen, astring &srcdir, astring
// if we got a valid file, process it
if (type != FILE_TYPE_INVALID)
{
- dstfile.printf("%s%c%s.html", dstdir.cstr(), PATH_SEPARATOR[0], curlist->name.cstr());
+ dstfile.printf("%s%c%s.html", dstdir.c_str(), PATH_SEPARATOR[0], curlist->name.c_str());
if (indexfile != NULL)
- core_fprintf(indexfile, "\t%s\n", curlist->name.cstr(), curlist->name.cstr());
+ core_fprintf(indexfile, "\t%s\n", curlist->name.c_str(), curlist->name.c_str());
result = output_file(type, srcrootlen, dstrootlen, srcfile, dstfile, srcdir == dstdir, tempheader, tempfooter);
}
}
@@ -430,9 +430,9 @@ static int recurse_dir(int srcrootlen, int dstrootlen, astring &srcdir, astring
// if we have a directory, recurse
else
{
- dstfile.printf("%s%c%s", dstdir.cstr(), PATH_SEPARATOR[0], curlist->name.cstr());
+ dstfile.printf("%s%c%s", dstdir.c_str(), PATH_SEPARATOR[0], curlist->name.c_str());
if (indexfile != NULL)
- core_fprintf(indexfile, "\t%s/\n", curlist->name.cstr(), curlist->name.cstr());
+ core_fprintf(indexfile, "\t%s/\n", curlist->name.c_str(), curlist->name.c_str());
result = recurse_dir(srcrootlen, dstrootlen, srcfile, dstfile, tempheader, tempfooter);
}
}
@@ -467,7 +467,7 @@ static int output_file(file_type type, int srcrootlen, int dstrootlen, astring &
astring srcfile_subpath;
normalized_subpath(srcfile_subpath, srcfile, srcrootlen + 1);
- fprintf(stderr, "Processing %s\n", srcfile_subpath.cstr());
+ fprintf(stderr, "Processing %s\n", srcfile_subpath.c_str());
// set some defaults
bool color_quotes = false;
@@ -519,7 +519,7 @@ static int output_file(file_type type, int srcrootlen, int dstrootlen, astring &
core_file *src;
if (core_fopen(srcfile, OPEN_FLAG_READ, &src) != FILERR_NONE)
{
- fprintf(stderr, "Unable to read file '%s'\n", srcfile.cstr());
+ fprintf(stderr, "Unable to read file '%s'\n", srcfile.c_str());
return 1;
}
@@ -527,7 +527,7 @@ static int output_file(file_type type, int srcrootlen, int dstrootlen, astring &
core_file *dst = create_file_and_output_header(dstfile, tempheader, srcfile_subpath);
if (dst == NULL)
{
- fprintf(stderr, "Unable to write file '%s'\n", dstfile.cstr());
+ fprintf(stderr, "Unable to write file '%s'\n", dstfile.c_str());
core_fclose(src);
return 1;
}
@@ -659,7 +659,7 @@ static int output_file(file_type type, int srcrootlen, int dstrootlen, astring &
astring target;
if (find_include_file(target, srcrootlen, dstrootlen, srcfile, dstfile, filename))
{
- dstline.catprintf("", target.cstr());
+ dstline.catprintf("", target.c_str());
quotes_are_linked = true;
}
}
@@ -738,8 +738,8 @@ static core_file *create_file_and_output_header(astring &filename, astring &temp
// print a header
astring modified(templatefile);
- modified.replace(0, "", path.cstr());
- core_fwrite(file, modified.cstr(), modified.len());
+ modified.replace(0, "", path.c_str());
+ core_fwrite(file, modified.c_str(), modified.len());
// return the file
return file;
@@ -754,8 +754,8 @@ static core_file *create_file_and_output_header(astring &filename, astring &temp
static void output_footer_and_close_file(core_file *file, astring &templatefile, astring &path)
{
astring modified(templatefile);
- modified.replace(0, "", path.cstr());
- core_fwrite(file, modified.cstr(), modified.len());
+ modified.replace(0, "", path.c_str());
+ core_fwrite(file, modified.c_str(), modified.len());
core_fclose(file);
}
@@ -807,7 +807,7 @@ static void output_path_as_links(core_file *file, astring &path, bool end_is_dir
core_fprintf(file, "%s/", substr.cstr());
+ core_fprintf(file, "index.html\">%s/", substr.c_str());
lastslash = slashindex + 1;
}
@@ -815,11 +815,11 @@ static void output_path_as_links(core_file *file, astring &path, bool end_is_dir
// and a final link to the current directory
astring substr(path, lastslash, -1);
if (end_is_directory)
- core_fprintf(file, "%s", substr.cstr());
+ core_fprintf(file, "%s", substr.c_str());
else if (link_to_file)
- core_fprintf(file, "%s", substr.cstr(), substr.cstr());
+ core_fprintf(file, "%s", substr.c_str(), substr.c_str());
else
- core_fprintf(file, "%s", substr.cstr(), substr.cstr());
+ core_fprintf(file, "%s", substr.c_str(), substr.c_str());
}
From 687d45b43f7580c6226499ac2b71475da140018e Mon Sep 17 00:00:00 2001
From: hap
Date: Sat, 11 Apr 2015 15:39:24 +0200
Subject: [PATCH 3/4] bonus typofix
---
src/mame/drivers/sfbonus.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/src/mame/drivers/sfbonus.c b/src/mame/drivers/sfbonus.c
index 820cd4ccd8c..5ce09859b1c 100644
--- a/src/mame/drivers/sfbonus.c
+++ b/src/mame/drivers/sfbonus.c
@@ -462,7 +462,7 @@ public:
TILE_GET_INFO_MEMBER(get_sfbonus_reel4_tile_info);
virtual void machine_reset();
virtual void video_start();
- void draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int catagory);
+ void draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int category);
UINT32 screen_update_sfbonus(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
};
@@ -929,7 +929,7 @@ void sfbonus_state::video_start()
}
-void sfbonus_state::draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int catagory)
+void sfbonus_state::draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect, int category)
{
int zz;
int i;
@@ -1021,38 +1021,38 @@ void sfbonus_state::draw_reel_layer(screen_device &screen, bitmap_ind16 &bitmap,
if (rowenable2==0)
{
- m_reel_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),3);
+ m_reel_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),3);
}
if (rowenable==0)
{
- m_reel_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),3);
+ m_reel_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),3);
}
if (rowenable2==0x1)
{
- m_reel2_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),2);
+ m_reel2_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),2);
}
if (rowenable==0x1)
{
- m_reel2_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),2);
+ m_reel2_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),2);
}
if (rowenable2==0x2)
{
- m_reel3_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),1);
+ m_reel3_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),1);
}
if (rowenable==0x2)
{
- m_reel3_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),1);
+ m_reel3_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),1);
}
if (rowenable2==0x3)
{
- m_reel4_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),4);
+ m_reel4_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),4);
}
if (rowenable==0x3)
{
- m_reel4_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(catagory),4);
+ m_reel4_tilemap->draw(screen, *m_temp_reel_bitmap, clip, TILEMAP_DRAW_CATEGORY(category),4);
}
From ae3fc8b6d9b1812d1ea537338887d8021428d1d8 Mon Sep 17 00:00:00 2001
From: Miodrag Milanovic
Date: Sat, 11 Apr 2015 15:50:05 +0200
Subject: [PATCH 4/4] removed non-existing file (nw)
---
scripts/src/lib.lua | 1 -
1 file changed, 1 deletion(-)
diff --git a/scripts/src/lib.lua b/scripts/src/lib.lua
index d9fb4a41ed6..557e9e7316c 100644
--- a/scripts/src/lib.lua
+++ b/scripts/src/lib.lua
@@ -17,7 +17,6 @@ project "utils"
files {
MAME_DIR .. "src/lib/util/bitstream.h",
MAME_DIR .. "src/lib/util/coretmpl.h",
- MAME_DIR .. "src/lib/util/simple_set.h",
MAME_DIR .. "src/lib/util/astring.c",
MAME_DIR .. "src/lib/util/astring.h",
MAME_DIR .. "src/lib/util/avhuff.c",