summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/emu/bus/c64/exp.c10
-rw-r--r--src/emu/bus/cbm2/exp.c6
-rw-r--r--src/emu/bus/gameboy/gb_slot.c6
-rw-r--r--src/emu/bus/gba/gba_slot.c2
-rw-r--r--src/emu/bus/megadrive/md_slot.c2
-rw-r--r--src/emu/bus/nes/nes_pcb.inc2
-rw-r--r--src/emu/bus/nes/nes_unif.inc2
-rw-r--r--src/emu/bus/pce/pce_slot.c2
-rw-r--r--src/emu/bus/sega8/sega8_slot.c2
-rw-r--r--src/emu/bus/snes/snes_slot.c2
-rw-r--r--src/emu/bus/vic10/exp.c8
-rw-r--r--src/emu/bus/vic20/exp.c14
-rw-r--r--src/emu/clifront.c8
-rw-r--r--src/emu/cpu/es5510/es5510.c2
-rw-r--r--src/emu/cpu/psx/dismips.c10
-rw-r--r--src/emu/cpu/z8000/8000dasm.c6
-rw-r--r--src/emu/debug/debugcmd.c2
-rw-r--r--src/emu/diimage.c6
-rw-r--r--src/emu/drivenum.c4
-rw-r--r--src/emu/emucore.h7
-rw-r--r--src/emu/ioport.c2
-rw-r--r--src/emu/machine/ram.c2
-rw-r--r--src/emu/mconfig.c2
-rw-r--r--src/emu/render.c2
-rw-r--r--src/emu/rendfont.c2
-rw-r--r--src/emu/romload.c4
-rw-r--r--src/emu/softlist.c2
-rw-r--r--src/emu/sound/spu.c2
-rw-r--r--src/emu/ui/filesel.c8
-rw-r--r--src/emu/ui/imginfo.c2
-rw-r--r--src/emu/ui/miscmenu.c4
-rw-r--r--src/emu/ui/swlist.c6
-rw-r--r--src/mame/drivers/cdi.c2
-rw-r--r--src/mame/drivers/firebeat.c6
-rw-r--r--src/mame/drivers/jaguar.c6
-rw-r--r--src/mame/drivers/megatech.c4
-rw-r--r--src/mame/drivers/model3.c30
-rw-r--r--src/mame/drivers/mpu4hw.c2
-rw-r--r--src/mame/drivers/nwk-tr.c8
-rw-r--r--src/mess/drivers/a2600.c2
-rw-r--r--src/mess/drivers/atari400.c2
-rw-r--r--src/mess/drivers/esq5505.c2
-rw-r--r--src/mess/drivers/microvsn.c4
-rw-r--r--src/mess/drivers/vc4000.c4
-rw-r--r--src/mess/machine/a7800.c2
-rw-r--r--src/mess/machine/cbm_snqk.c8
-rw-r--r--src/mess/machine/intv.c2
-rw-r--r--src/mess/machine/lynx.c4
-rw-r--r--src/mess/machine/mbee.c6
-rw-r--r--src/mess/machine/msx.c2
-rw-r--r--src/mess/machine/spec_snqk.c28
-rw-r--r--src/osd/windows/winmain.c2
52 files changed, 130 insertions, 137 deletions
diff --git a/src/emu/bus/c64/exp.c b/src/emu/bus/c64/exp.c
index 1739a672a71..5f2f278f04d 100644
--- a/src/emu/bus/c64/exp.c
+++ b/src/emu/bus/c64/exp.c
@@ -126,7 +126,7 @@ bool c64_expansion_slot_device::call_load()
{
size = length();
- if (!mame_stricmp(filetype(), "80"))
+ if (!core_stricmp(filetype(), "80"))
{
fread(m_card->m_roml, size);
m_card->m_exrom = (0);
@@ -136,20 +136,20 @@ bool c64_expansion_slot_device::call_load()
m_card->m_game = 0;
}
}
- else if (!mame_stricmp(filetype(), "a0"))
+ else if (!core_stricmp(filetype(), "a0"))
{
fread(m_card->m_romh, 0x2000);
m_card->m_exrom = 0;
m_card->m_game = 0;
}
- else if (!mame_stricmp(filetype(), "e0"))
+ else if (!core_stricmp(filetype(), "e0"))
{
fread(m_card->m_romh, 0x2000);
m_card->m_game = 0;
}
- else if (!mame_stricmp(filetype(), "crt"))
+ else if (!core_stricmp(filetype(), "crt"))
{
size_t roml_size = 0;
size_t romh_size = 0;
@@ -224,7 +224,7 @@ void c64_expansion_slot_device::get_default_card_software(astring &result)
{
if (open_image_file(mconfig().options()))
{
- if (!mame_stricmp(filetype(), "crt"))
+ if (!core_stricmp(filetype(), "crt"))
{
cbm_crt_get_card(result, m_file);
return;
diff --git a/src/emu/bus/cbm2/exp.c b/src/emu/bus/cbm2/exp.c
index 93ef2d648e8..160c080d8fd 100644
--- a/src/emu/bus/cbm2/exp.c
+++ b/src/emu/bus/cbm2/exp.c
@@ -114,17 +114,17 @@ bool cbm2_expansion_slot_device::call_load()
{
size = length();
- if (!mame_stricmp(filetype(), "20"))
+ if (!core_stricmp(filetype(), "20"))
{
m_card->m_bank1.allocate(size);
fread(m_card->m_bank1, size);
}
- else if (!mame_stricmp(filetype(), "40"))
+ else if (!core_stricmp(filetype(), "40"))
{
m_card->m_bank2.allocate(size);
fread(m_card->m_bank2, size);
}
- else if (!mame_stricmp(filetype(), "60"))
+ else if (!core_stricmp(filetype(), "60"))
{
m_card->m_bank3.allocate(size);
fread(m_card->m_bank3, size);
diff --git a/src/emu/bus/gameboy/gb_slot.c b/src/emu/bus/gameboy/gb_slot.c
index c3c7b7e7d3e..dff39ce978f 100644
--- a/src/emu/bus/gameboy/gb_slot.c
+++ b/src/emu/bus/gameboy/gb_slot.c
@@ -226,7 +226,7 @@ static int gb_get_pcb_id(const char *slot)
{
for (int i = 0; i < ARRAY_LENGTH(slot_list); i++)
{
- if (!mame_stricmp(slot_list[i].slot_option, slot))
+ if (!core_stricmp(slot_list[i].slot_option, slot))
return slot_list[i].pcb_id;
}
@@ -312,13 +312,13 @@ bool base_gb_cart_slot_device::call_load()
if (get_feature("rumble"))
{
- if (!mame_stricmp(get_feature("rumble"), "yes"))
+ if (!core_stricmp(get_feature("rumble"), "yes"))
m_cart->set_has_rumble(true);
}
if (get_feature("rtc"))
{
- if (!mame_stricmp(get_feature("rtc"), "yes"))
+ if (!core_stricmp(get_feature("rtc"), "yes"))
m_cart->set_has_timer(true);
}
}
diff --git a/src/emu/bus/gba/gba_slot.c b/src/emu/bus/gba/gba_slot.c
index 8f02829d97f..6118f7ec097 100644
--- a/src/emu/bus/gba/gba_slot.c
+++ b/src/emu/bus/gba/gba_slot.c
@@ -127,7 +127,7 @@ static int gba_get_pcb_id(const char *slot)
{
for (int i = 0; i < ARRAY_LENGTH(slot_list); i++)
{
- if (!mame_stricmp(slot_list[i].slot_option, slot))
+ if (!core_stricmp(slot_list[i].slot_option, slot))
return slot_list[i].pcb_id;
}
diff --git a/src/emu/bus/megadrive/md_slot.c b/src/emu/bus/megadrive/md_slot.c
index c2a017dd036..e9cad87ab6a 100644
--- a/src/emu/bus/megadrive/md_slot.c
+++ b/src/emu/bus/megadrive/md_slot.c
@@ -288,7 +288,7 @@ static int md_get_pcb_id(const char *slot)
{
for (int i = 0; i < ARRAY_LENGTH(slot_list); i++)
{
- if (!mame_stricmp(slot_list[i].slot_option, slot))
+ if (!core_stricmp(slot_list[i].slot_option, slot))
return slot_list[i].pcb_id;
}
diff --git a/src/emu/bus/nes/nes_pcb.inc b/src/emu/bus/nes/nes_pcb.inc
index 4c0093f0965..870922634b9 100644
--- a/src/emu/bus/nes/nes_pcb.inc
+++ b/src/emu/bus/nes/nes_pcb.inc
@@ -321,7 +321,7 @@ static const nes_pcb *nes_pcb_lookup( const char *slot )
{
for (int i = 0; i < ARRAY_LENGTH(pcb_list); i++)
{
- if (!mame_stricmp(pcb_list[i].slot_opt, slot))
+ if (!core_stricmp(pcb_list[i].slot_opt, slot))
return &pcb_list[i];
}
return NULL;
diff --git a/src/emu/bus/nes/nes_unif.inc b/src/emu/bus/nes/nes_unif.inc
index 5681d38fc00..e4b76d0edb7 100644
--- a/src/emu/bus/nes/nes_unif.inc
+++ b/src/emu/bus/nes/nes_unif.inc
@@ -148,7 +148,7 @@ const unif *nes_unif_lookup( const char *board )
int i;
for (i = 0; i < ARRAY_LENGTH(unif_list); i++)
{
- if (!mame_stricmp(unif_list[i].board, board))
+ if (!core_stricmp(unif_list[i].board, board))
return &unif_list[i];
}
return NULL;
diff --git a/src/emu/bus/pce/pce_slot.c b/src/emu/bus/pce/pce_slot.c
index 68fb95e28d6..b1cff7cd610 100644
--- a/src/emu/bus/pce/pce_slot.c
+++ b/src/emu/bus/pce/pce_slot.c
@@ -188,7 +188,7 @@ static int pce_get_pcb_id(const char *slot)
{
for (int i = 0; i < ARRAY_LENGTH(slot_list); i++)
{
- if (!mame_stricmp(slot_list[i].slot_option, slot))
+ if (!core_stricmp(slot_list[i].slot_option, slot))
return slot_list[i].pcb_id;
}
diff --git a/src/emu/bus/sega8/sega8_slot.c b/src/emu/bus/sega8/sega8_slot.c
index e30306f3257..4b686a9a91a 100644
--- a/src/emu/bus/sega8/sega8_slot.c
+++ b/src/emu/bus/sega8/sega8_slot.c
@@ -195,7 +195,7 @@ static int sega8_get_pcb_id(const char *slot)
{
for (int i = 0; i < ARRAY_LENGTH(slot_list); i++)
{
- if (!mame_stricmp(slot_list[i].slot_option, slot))
+ if (!core_stricmp(slot_list[i].slot_option, slot))
return slot_list[i].pcb_id;
}
diff --git a/src/emu/bus/snes/snes_slot.c b/src/emu/bus/snes/snes_slot.c
index 3628d0dd4f9..61997ab448e 100644
--- a/src/emu/bus/snes/snes_slot.c
+++ b/src/emu/bus/snes/snes_slot.c
@@ -309,7 +309,7 @@ static int sns_get_pcb_id(const char *slot)
{
for (int i = 0; i < ARRAY_LENGTH(slot_list); i++)
{
- if (!mame_stricmp(slot_list[i].slot_option, slot))
+ if (!core_stricmp(slot_list[i].slot_option, slot))
return slot_list[i].pcb_id;
}
diff --git a/src/emu/bus/vic10/exp.c b/src/emu/bus/vic10/exp.c
index 0757af5edf9..be18aaf8bfb 100644
--- a/src/emu/bus/vic10/exp.c
+++ b/src/emu/bus/vic10/exp.c
@@ -122,7 +122,7 @@ bool vic10_expansion_slot_device::call_load()
{
size = length();
- if (!mame_stricmp(filetype(), "80"))
+ if (!core_stricmp(filetype(), "80"))
{
fread(m_card->m_lorom, 0x2000);
@@ -131,11 +131,11 @@ bool vic10_expansion_slot_device::call_load()
fread(m_card->m_uprom, 0x2000);
}
}
- else if (!mame_stricmp(filetype(), "e0"))
+ else if (!core_stricmp(filetype(), "e0"))
{
fread(m_card->m_uprom, size);
}
- else if (!mame_stricmp(filetype(), "crt"))
+ else if (!core_stricmp(filetype(), "crt"))
{
size_t roml_size = 0;
size_t romh_size = 0;
@@ -189,7 +189,7 @@ void vic10_expansion_slot_device::get_default_card_software(astring &result)
{
if (open_image_file(mconfig().options()))
{
- if (!mame_stricmp(filetype(), "crt"))
+ if (!core_stricmp(filetype(), "crt"))
{
cbm_crt_get_card(result, m_file);
return;
diff --git a/src/emu/bus/vic20/exp.c b/src/emu/bus/vic20/exp.c
index 7f6cf3db6eb..bbc24ed6398 100644
--- a/src/emu/bus/vic20/exp.c
+++ b/src/emu/bus/vic20/exp.c
@@ -116,13 +116,13 @@ bool vic20_expansion_slot_device::call_load()
{
if (software_entry() == NULL)
{
- if (!mame_stricmp(filetype(), "20")) fread(m_card->m_blk1, 0x2000);
- else if (!mame_stricmp(filetype(), "40")) fread(m_card->m_blk2, 0x2000);
- else if (!mame_stricmp(filetype(), "60")) fread(m_card->m_blk3, 0x2000);
- else if (!mame_stricmp(filetype(), "70")) fread(m_card->m_blk3, 0x2000, 0x1000);
- else if (!mame_stricmp(filetype(), "a0")) fread(m_card->m_blk5, 0x2000);
- else if (!mame_stricmp(filetype(), "b0")) fread(m_card->m_blk5, 0x2000, 0x1000);
- else if (!mame_stricmp(filetype(), "crt"))
+ if (!core_stricmp(filetype(), "20")) fread(m_card->m_blk1, 0x2000);
+ else if (!core_stricmp(filetype(), "40")) fread(m_card->m_blk2, 0x2000);
+ else if (!core_stricmp(filetype(), "60")) fread(m_card->m_blk3, 0x2000);
+ else if (!core_stricmp(filetype(), "70")) fread(m_card->m_blk3, 0x2000, 0x1000);
+ else if (!core_stricmp(filetype(), "a0")) fread(m_card->m_blk5, 0x2000);
+ else if (!core_stricmp(filetype(), "b0")) fread(m_card->m_blk5, 0x2000, 0x1000);
+ else if (!core_stricmp(filetype(), "crt"))
{
// read the header
UINT8 header[2];
diff --git a/src/emu/clifront.c b/src/emu/clifront.c
index 784f4c46bcb..8bfbccf1fc7 100644
--- a/src/emu/clifront.c
+++ b/src/emu/clifront.c
@@ -854,7 +854,7 @@ void cli_frontend::verifyroms(const char *gamename)
for (device_t *dev = iter.first(); dev != NULL; dev = iter.next())
{
if (dev->owner() != NULL && (*(dev->shortname()) != 0) && dev->rom_region() != NULL && (device_map.add(dev->shortname(), 0, false) != TMERR_DUPLICATE)) {
- if (mame_strwildcmp(gamename, dev->shortname()) == 0)
+ if (core_strwildcmp(gamename, dev->shortname()) == 0)
{
matched++;
@@ -917,7 +917,7 @@ void cli_frontend::verifyroms(const char *gamename)
device->config_complete();
if (device_map.add(dev->shortname(), 0, false) != TMERR_DUPLICATE) {
- if (mame_strwildcmp(gamename, dev->shortname()) == 0)
+ if (core_strwildcmp(gamename, dev->shortname()) == 0)
{
matched++;
if (dev->rom_region() != NULL)
@@ -1419,7 +1419,7 @@ void cli_frontend::getsoftlist(const char *gamename)
{
software_list_device_iterator iter(drivlist.config().root_device());
for (software_list_device *swlistdev = iter.first(); swlistdev != NULL; swlistdev = iter.next())
- if (mame_strwildcmp(swlistdev->list_name(), gamename) == 0 && list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
+ if (core_strwildcmp(swlistdev->list_name(), gamename) == 0 && list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
if (swlistdev->first_software_info() != NULL)
{
if (isfirst) { fprintf( out, SOFTLIST_XML_BEGIN); isfirst = FALSE; }
@@ -1452,7 +1452,7 @@ void cli_frontend::verifysoftlist(const char *gamename)
{
software_list_device_iterator iter(drivlist.config().root_device());
for (software_list_device *swlistdev = iter.first(); swlistdev != NULL; swlistdev = iter.next())
- if (mame_strwildcmp(swlistdev->list_name(), gamename) == 0 && list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
+ if (core_strwildcmp(swlistdev->list_name(), gamename) == 0 && list_map.add(swlistdev->list_name(), 0, false) != TMERR_DUPLICATE)
if (swlistdev->first_software_info() != NULL)
{
matched++;
diff --git a/src/emu/cpu/es5510/es5510.c b/src/emu/cpu/es5510/es5510.c
index 18a192c420b..9bdfd7ad373 100644
--- a/src/emu/cpu/es5510/es5510.c
+++ b/src/emu/cpu/es5510/es5510.c
@@ -357,7 +357,7 @@ READ8_MEMBER(es5510_device::host_r)
// printf("%06x: DSP read offset %04x (data is %04x)\n",space.device().safe_pc(),offset,dsp_ram[offset]);
// VFX hack
- if (mame_stricmp(space.machine().system().name, "vfx") == 0)
+ if (core_stricmp(space.machine().system().name, "vfx") == 0)
{
if (space.device().safe_pc() == 0xc091f0)
{
diff --git a/src/emu/cpu/psx/dismips.c b/src/emu/cpu/psx/dismips.c
index 7732f5bdf69..f8583dbaed1 100644
--- a/src/emu/cpu/psx/dismips.c
+++ b/src/emu/cpu/psx/dismips.c
@@ -164,11 +164,11 @@ int main( int argc, char *argv[] )
{
usage();
}
- if( mame_stricmp( argv[ i ], "bin" ) == 0 )
+ if( core_stricmp( argv[ i ], "bin" ) == 0 )
{
format = FORMAT_BIN;
}
- else if( mame_stricmp( argv[ i ], "psx" ) == 0 )
+ else if( core_stricmp( argv[ i ], "psx" ) == 0 )
{
format = FORMAT_PSX;
}
@@ -183,15 +183,15 @@ int main( int argc, char *argv[] )
{
usage();
}
- if( mame_stricmp( argv[ i ], "psx" ) == 0 )
+ if( core_stricmp( argv[ i ], "psx" ) == 0 )
{
cpu = CPU_PSX;
}
- else if( mame_stricmp( argv[ i ], "r3000" ) == 0 )
+ else if( core_stricmp( argv[ i ], "r3000" ) == 0 )
{
cpu = CPU_R3000;
}
- else if( mame_stricmp( argv[ i ], "r4000" ) == 0 )
+ else if( core_stricmp( argv[ i ], "r4000" ) == 0 )
{
cpu = CPU_R4000;
}
diff --git a/src/emu/cpu/z8000/8000dasm.c b/src/emu/cpu/z8000/8000dasm.c
index 3752683ce36..9aada81559d 100644
--- a/src/emu/cpu/z8000/8000dasm.c
+++ b/src/emu/cpu/z8000/8000dasm.c
@@ -90,17 +90,17 @@ void z8k_disass_mode(running_machine &machine, int ref, int params, const char *
if (params == 1)
{
len = strlen(param[0]);
- if (!mame_strnicmp(param[0], "segmented", len) || !mame_stricmp(param[0], "z8001")) {
+ if (!core_strnicmp(param[0], "segmented", len) || !core_stricmp(param[0], "z8001")) {
z8k_segm = true;
z8k_segm_mode = Z8K_SEGM_MODE_SEG;
debug_console_printf(machine, "Disassembler mode set to Z8001/segmented\n");
}
- else if (!mame_strnicmp(param[0], "non-segmented", len) || !mame_stricmp(param[0], "z8002")) {
+ else if (!core_strnicmp(param[0], "non-segmented", len) || !core_stricmp(param[0], "z8002")) {
z8k_segm = false;
z8k_segm_mode = Z8K_SEGM_MODE_NONSEG;
debug_console_printf(machine, "Disassembler mode set to Z8002/non-segmented\n");
}
- else if (!mame_strnicmp(param[0], "automatic", len)) {
+ else if (!core_strnicmp(param[0], "automatic", len)) {
z8k_segm_mode = Z8K_SEGM_MODE_AUTO;
debug_console_printf(machine, "Disassembler mode set to automatic\n");
}
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c
index 1c3969235c0..8bf4a57ea56 100644
--- a/src/emu/debug/debugcmd.c
+++ b/src/emu/debug/debugcmd.c
@@ -2584,7 +2584,7 @@ static void execute_trace_internal(running_machine &machine, int ref, int params
return;
/* open the file */
- if (mame_stricmp(filename, "off") != 0)
+ if (core_stricmp(filename, "off") != 0)
{
mode = "w";
diff --git a/src/emu/diimage.c b/src/emu/diimage.c
index d2d09c93bce..d0c44760ffb 100644
--- a/src/emu/diimage.c
+++ b/src/emu/diimage.c
@@ -118,7 +118,7 @@ iodevice_t device_image_interface::device_typeid(const char *name)
int i;
for (i = 0; i < ARRAY_LENGTH(device_image_interface::m_device_info_array); i++)
{
- if (!mame_stricmp(name, m_device_info_array[i].m_name) || !mame_stricmp(name, m_device_info_array[i].m_shortname))
+ if (!core_stricmp(name, m_device_info_array[i].m_name) || !core_stricmp(name, m_device_info_array[i].m_shortname))
return m_device_info_array[i].m_type;
}
return (iodevice_t)-1;
@@ -299,7 +299,7 @@ bool device_image_interface::try_change_working_directory(const char *subdir)
{
while(!done && (entry = osd_readdir(directory)) != NULL)
{
- if (!mame_stricmp(subdir, entry->name))
+ if (!core_stricmp(subdir, entry->name))
{
done = TRUE;
success = entry->type == ENTTYPE_DIR;
@@ -535,7 +535,7 @@ bool device_image_interface::uses_file_extension(const char *file_extension) con
char *ext = strtok((char*)extensions.cstr(),",");
while (ext != NULL)
{
- if (!mame_stricmp(ext, file_extension))
+ if (!core_stricmp(ext, file_extension))
{
result = TRUE;
break;
diff --git a/src/emu/drivenum.c b/src/emu/drivenum.c
index c5d5c6907db..4d39f9d8cc4 100644
--- a/src/emu/drivenum.c
+++ b/src/emu/drivenum.c
@@ -60,7 +60,7 @@ bool driver_list::matches(const char *wildstring, const char *string)
return false;
// match everything else normally
- return (wildstring == NULL || mame_strwildcmp(wildstring, string) == 0);
+ return (wildstring == NULL || core_strwildcmp(wildstring, string) == 0);
}
@@ -73,7 +73,7 @@ int driver_list::driver_sort_callback(const void *elem1, const void *elem2)
{
const game_driver * const *item1 = reinterpret_cast<const game_driver * const *>(elem1);
const game_driver * const *item2 = reinterpret_cast<const game_driver * const *>(elem2);
- return mame_stricmp((*item1)->name, (*item2)->name);
+ return core_stricmp((*item1)->name, (*item2)->name);
}
diff --git a/src/emu/emucore.h b/src/emu/emucore.h
index 5a1b797a141..450c23b7584 100644
--- a/src/emu/emucore.h
+++ b/src/emu/emucore.h
@@ -227,13 +227,6 @@ inline void operator--(_Type &value, int) { value = (_Type)((int)value - 1); }
#endif
-// map mame_* helpers to core_* helpers */
-#define mame_stricmp core_stricmp
-#define mame_strnicmp core_strnicmp
-#define mame_strdup core_strdup
-#define mame_strwildcmp core_strwildcmp
-
-
// macros to convert radians to degrees and degrees to radians
#define RADIAN_TO_DEGREE(x) ((180.0 / M_PI) * (x))
#define DEGREE_TO_RADIAN(x) ((M_PI / 180.0) * (x))
diff --git a/src/emu/ioport.c b/src/emu/ioport.c
index 181297ce8b7..909671c8ff6 100644
--- a/src/emu/ioport.c
+++ b/src/emu/ioport.c
@@ -4411,7 +4411,7 @@ input_seq_type ioport_manager::token_to_seq_type(const char *string)
{
// look up the string in the table of possible sequence types and return the index
for (int seqindex = 0; seqindex < ARRAY_LENGTH(seqtypestrings); seqindex++)
- if (!mame_stricmp(string, seqtypestrings[seqindex]))
+ if (!core_stricmp(string, seqtypestrings[seqindex]))
return input_seq_type(seqindex);
return SEQ_TYPE_INVALID;
}
diff --git a/src/emu/machine/ram.c b/src/emu/machine/ram.c
index c811266e1f8..b19b05a7833 100644
--- a/src/emu/machine/ram.c
+++ b/src/emu/machine/ram.c
@@ -110,7 +110,7 @@ void ram_device::device_validity_check(validity_checker &valid) const
{
int j;
int size = strlen(m_extra_options);
- char * const s = mame_strdup(m_extra_options);
+ char * const s = core_strdup(m_extra_options);
char * const e = s + size;
char *p = s;
for (j=0;j<size;j++) {
diff --git a/src/emu/mconfig.c b/src/emu/mconfig.c
index 2dab4ad964d..1c9c591baa9 100644
--- a/src/emu/mconfig.c
+++ b/src/emu/mconfig.c
@@ -34,7 +34,7 @@ machine_config::machine_config(const game_driver &gamedrv, emu_options &options)
// construct the config
(*gamedrv.machine_config)(*this, NULL, NULL);
- bool is_selected_driver = mame_stricmp(gamedrv.name,options.system_name())==0;
+ bool is_selected_driver = core_stricmp(gamedrv.name,options.system_name())==0;
// intialize slot devices - make sure that any required devices have been allocated
slot_interface_iterator slotiter(root_device());
for (device_slot_interface *slot = slotiter.first(); slot != NULL; slot = slotiter.next())
diff --git a/src/emu/render.c b/src/emu/render.c
index 93f7dcb9e1c..05ed18d3883 100644
--- a/src/emu/render.c
+++ b/src/emu/render.c
@@ -1053,7 +1053,7 @@ int render_target::configured_view(const char *viewname, int targetindex, int nu
{
// scan for a matching view name
for (view = view_by_index(viewindex = 0); view != NULL; view = view_by_index(++viewindex))
- if (mame_strnicmp(view->name(), viewname, strlen(viewname)) == 0)
+ if (core_strnicmp(view->name(), viewname, strlen(viewname)) == 0)
break;
}
diff --git a/src/emu/rendfont.c b/src/emu/rendfont.c
index f6de9822243..a186dd78ee3 100644
--- a/src/emu/rendfont.c
+++ b/src/emu/rendfont.c
@@ -98,7 +98,7 @@ render_font::render_font(render_manager &manager, const char *filename)
}
// if the filename is 'default' default to 'ui.bdf' for backwards compatibility
- if (filename != NULL && mame_stricmp(filename, "default") == 0)
+ if (filename != NULL && core_stricmp(filename, "default") == 0)
filename = "ui.bdf";
// attempt to load the cached version of the font first
diff --git a/src/emu/romload.c b/src/emu/romload.c
index e8272d9963c..38b7c23645d 100644
--- a/src/emu/romload.c
+++ b/src/emu/romload.c
@@ -306,9 +306,9 @@ static void determine_bios_rom(romload_private *romdata, device_t *device, const
/* Allow '-bios n' to still be used */
sprintf(bios_number, "%d", bios_flags - 1);
- if (mame_stricmp(bios_number, specbios) == 0 || mame_stricmp(biosname, specbios) == 0)
+ if (core_stricmp(bios_number, specbios) == 0 || core_stricmp(biosname, specbios) == 0)
device->set_system_bios(bios_flags);
- if (defaultname != NULL && mame_stricmp(biosname, defaultname) == 0)
+ if (defaultname != NULL && core_stricmp(biosname, defaultname) == 0)
default_no = bios_flags;
bios_count++;
}
diff --git a/src/emu/softlist.c b/src/emu/softlist.c
index b77ad30a912..803e4a36f54 100644
--- a/src/emu/softlist.c
+++ b/src/emu/softlist.c
@@ -541,7 +541,7 @@ software_info *software_list_device::find(const char *look_for, software_info *p
// find a match (will cause a parse if needed when calling first_software_info)
for (prev = (prev != NULL) ? prev->next() : first_software_info(); prev != NULL; prev = prev->next())
- if (mame_strwildcmp(look_for, prev->shortname()) == 0)
+ if (core_strwildcmp(look_for, prev->shortname()) == 0)
break;
return prev;
diff --git a/src/emu/sound/spu.c b/src/emu/sound/spu.c
index da534368aa9..808b1180ae8 100644
--- a/src/emu/sound/spu.c
+++ b/src/emu/sound/spu.c
@@ -2545,7 +2545,7 @@ void spu_device::update_reverb()
// printf("spu: reverb=%s\n",cur_reverb_preset->name);
spu_reverb_cfg=&cur_reverb_preset->cfg;
- if ((mame_stricmp("reverb off",cur_reverb_preset->name)) && (spu_reverb_cfg->band_gain<=0.0f))
+ if ((core_stricmp("reverb off",cur_reverb_preset->name)) && (spu_reverb_cfg->band_gain<=0.0f))
{
// printf("spu: no reverb config for %s\n",cur_reverb_preset->name);
}
diff --git a/src/emu/ui/filesel.c b/src/emu/ui/filesel.c
index 975f66f339d..ed275f255a5 100644
--- a/src/emu/ui/filesel.c
+++ b/src/emu/ui/filesel.c
@@ -399,7 +399,7 @@ int ui_menu_file_selector::compare_entries(const file_selector_entry *e1, const
}
else
{
- result = mame_stricmp(e1_basename, e2_basename);
+ result = core_stricmp(e1_basename, e2_basename);
if (result == 0)
{
result = strcmp(e1_basename, e2_basename);
@@ -592,7 +592,7 @@ void ui_menu_file_selector::populate()
selected_entry = entry;
// do we have to select this file?
- if (!mame_stricmp(m_current_file, dirent->name))
+ if (!core_stricmp(m_current_file, dirent->name))
selected_entry = entry;
}
}
@@ -716,7 +716,7 @@ void ui_menu_file_selector::handle()
int match = 0;
for (int i = 0; i < ARRAY_LENGTH(m_filename_buffer); i++)
{
- if (mame_strnicmp(entry->basename, m_filename_buffer, i) == 0)
+ if (core_strnicmp(entry->basename, m_filename_buffer, i) == 0)
match = i;
}
@@ -735,7 +735,7 @@ void ui_menu_file_selector::handle()
int match = 0;
for (int i = 0; i < ARRAY_LENGTH(m_filename_buffer); i++)
{
- if (mame_strnicmp(entry->basename, m_filename_buffer, i) == 0)
+ if (core_strnicmp(entry->basename, m_filename_buffer, i) == 0)
match = i;
}
diff --git a/src/emu/ui/imginfo.c b/src/emu/ui/imginfo.c
index ef4d88c0537..2eaccfdaee6 100644
--- a/src/emu/ui/imginfo.c
+++ b/src/emu/ui/imginfo.c
@@ -156,7 +156,7 @@ void ui_menu_image_info::image_info_astring(running_machine &machine, astring &s
// display long filename, if present and doesn't correspond to name
info = image->longname();
- if (info && (!base_filename_noextension || mame_stricmp(info, base_filename_noextension)))
+ if (info && (!base_filename_noextension || core_stricmp(info, base_filename_noextension)))
string.catprintf("%s\n", info);
// display manufacturer, if available
diff --git a/src/emu/ui/miscmenu.c b/src/emu/ui/miscmenu.c
index ee51cbb19ff..f9cdb7a4d77 100644
--- a/src/emu/ui/miscmenu.c
+++ b/src/emu/ui/miscmenu.c
@@ -949,7 +949,7 @@ void ui_menu_settings::populate()
dip->mask = dip->state = 0;
*diplist_tailptr = dip;
diplist_tailptr = &dip->next;
- if (mame_stricmp(dip->name, "FAKE") != 0)
+ if (core_stricmp(dip->name, "FAKE") != 0)
dipcount++;
}
@@ -995,7 +995,7 @@ void ui_menu_settings_dip_switches::custom_render(void *selectedref, float top,
/* iterate over DIP switches */
for (dip = diplist; dip != NULL; dip = dip->next)
{
- if (mame_stricmp(dip->name, "FAKE") != 0)
+ if (core_stricmp(dip->name, "FAKE") != 0)
{
const ioport_diplocation *diploc;
UINT32 selectedmask = 0;
diff --git a/src/emu/ui/swlist.c b/src/emu/ui/swlist.c
index 3eaf3908830..f18693d7049 100644
--- a/src/emu/ui/swlist.c
+++ b/src/emu/ui/swlist.c
@@ -149,7 +149,7 @@ int ui_menu_software_list::compare_entries(const entry_info *e1, const entry_inf
e2_basename = (e2->long_name != NULL) ? e2->long_name : "";
}
- result = mame_stricmp(e1_basename, e2_basename);
+ result = core_stricmp(e1_basename, e2_basename);
if (result == 0)
{
result = strcmp(e1_basename, e2_basename);
@@ -309,7 +309,7 @@ void ui_menu_software_list::handle()
int match = 0;
for (int i = 0; i < ARRAY_LENGTH(m_filename_buffer); i++)
{
- if (mame_strnicmp(compare_name, m_filename_buffer, i) == 0)
+ if (core_strnicmp(compare_name, m_filename_buffer, i) == 0)
match = i;
}
@@ -330,7 +330,7 @@ void ui_menu_software_list::handle()
int match = 0;
for (int i = 0; i < ARRAY_LENGTH(m_filename_buffer); i++)
{
- if (mame_strnicmp(compare_name, m_filename_buffer, i) == 0)
+ if (core_strnicmp(compare_name, m_filename_buffer, i) == 0)
match = i;
}
diff --git a/src/mame/drivers/cdi.c b/src/mame/drivers/cdi.c
index 6b1d8220d44..163515e2443 100644
--- a/src/mame/drivers/cdi.c
+++ b/src/mame/drivers/cdi.c
@@ -308,7 +308,7 @@ static DEVICE_IMAGE_DISPLAY_INFO(cdi_cdinfo)
const char *compatibility = image.get_feature("compatibility");
if (compatibility)
{
- if (!mame_stricmp(compatibility, "DVC"))
+ if (!core_stricmp(compatibility, "DVC"))
{
mame_printf_warning("This software requires the Digital Video Cartridge to work.\n");
mame_printf_warning("Therefore, it might not work in MESS at present.\n");
diff --git a/src/mame/drivers/firebeat.c b/src/mame/drivers/firebeat.c
index 3130a9b45ae..423553a6f72 100644
--- a/src/mame/drivers/firebeat.c
+++ b/src/mame/drivers/firebeat.c
@@ -603,7 +603,7 @@ UINT32 firebeat_state::update_screen(screen_device &screen, bitmap_ind16 &bitmap
{
bitmap.fill(0, cliprect);
- if ((mame_strnicmp(screen.machine().system().name, "popn", 4) == 0) || (mame_strnicmp(screen.machine().system().name, "bm3", 3) == 0))
+ if ((core_strnicmp(screen.machine().system().name, "popn", 4) == 0) || (core_strnicmp(screen.machine().system().name, "bm3", 3) == 0))
{
gcu_exec_display_list( bitmap, cliprect, chip, 0x1f80000);
}
@@ -751,7 +751,7 @@ void firebeat_state::GCU_w(int chip, UINT32 offset, UINT32 data, UINT32 mem_mask
case 0x40: /* framebuffer config */
// HACK: switch display lists at the right times for the ParaParaParadise games until we
// do the video emulation properly
- if (mame_strnicmp(machine().system().name, "pp", 2) == 0)
+ if (core_strnicmp(machine().system().name, "pp", 2) == 0)
{
switch (data)
{
@@ -771,7 +771,7 @@ void firebeat_state::GCU_w(int chip, UINT32 offset, UINT32 data, UINT32 mem_mask
break;
}
}
- else if (mame_strnicmp(machine().system().name, "kbm", 3) == 0)
+ else if (core_strnicmp(machine().system().name, "kbm", 3) == 0)
{
switch (data)
{
diff --git a/src/mame/drivers/jaguar.c b/src/mame/drivers/jaguar.c
index 09217c138f1..5b8dcf33255 100644
--- a/src/mame/drivers/jaguar.c
+++ b/src/mame/drivers/jaguar.c
@@ -2019,11 +2019,11 @@ int jaguar_state::quickload(device_image_interface &image, const char *file_type
skip = 96;
else /* ABS binary */
- if (!mame_stricmp(image.filetype(), "abs"))
+ if (!core_stricmp(image.filetype(), "abs"))
start = 0xc000;
else /* JAG binary */
- if (!mame_stricmp(image.filetype(), "jag"))
+ if (!core_stricmp(image.filetype(), "jag"))
start = 0x5000;
@@ -2069,7 +2069,7 @@ int jaguar_state::cart_load(device_image_interface &image)
size = image.length();
/* .rom files load & run at 802000 */
- if (!mame_stricmp(image.filetype(), "rom"))
+ if (!core_stricmp(image.filetype(), "rom"))
{
load_offset = 0x2000; // fix load address
m_cart_base[0x101]=0x802000; // fix exec address
diff --git a/src/mame/drivers/megatech.c b/src/mame/drivers/megatech.c
index 181ab6e8d20..d26afd9b018 100644
--- a/src/mame/drivers/megatech.c
+++ b/src/mame/drivers/megatech.c
@@ -581,12 +581,12 @@ DEVICE_IMAGE_LOAD_MEMBER( mtech_state, megatech_cart )
return IMAGE_INIT_FAIL;
else
{
- if (!mame_stricmp("genesis", pcb_name))
+ if (!core_stricmp("genesis", pcb_name))
{
mame_printf_debug("%s is genesis\n", mt_cart->tag);
m_cart_is_genesis[this_cart->slot] = 1;
}
- else if (!mame_stricmp("sms", pcb_name))
+ else if (!core_stricmp("sms", pcb_name))
{
mame_printf_debug("%s is sms\n", mt_cart->tag);
m_cart_is_genesis[this_cart->slot] = 0;
diff --git a/src/mame/drivers/model3.c b/src/mame/drivers/model3.c
index a1d7ddf1e01..37105b3d936 100644
--- a/src/mame/drivers/model3.c
+++ b/src/mame/drivers/model3.c
@@ -1262,9 +1262,9 @@ static void model3_init(running_machine &machine, int step)
model3_tap_reset(machine);
if(step < 0x20) {
- if( mame_stricmp(machine.system().name, "vs215") == 0 ||
- mame_stricmp(machine.system().name, "vs29815") == 0 ||
- mame_stricmp(machine.system().name, "bass") == 0 )
+ if( core_stricmp(machine.system().name, "vs215") == 0 ||
+ core_stricmp(machine.system().name, "vs29815") == 0 ||
+ core_stricmp(machine.system().name, "bass") == 0 )
{
mpc106_init(machine);
}
@@ -1278,8 +1278,8 @@ static void model3_init(running_machine &machine, int step)
mpc106_init(machine);
// some step 2+ games need the older PCI ID (obvious symptom:
// vbl is enabled briefly then disabled so the game hangs)
- if (mame_stricmp(machine.system().name, "magtruck") == 0 ||
- mame_stricmp(machine.system().name, "von254g") == 0)
+ if (core_stricmp(machine.system().name, "magtruck") == 0 ||
+ core_stricmp(machine.system().name, "von254g") == 0)
{
state->m_real3d_device_id = 0x16c311db; /* PCI Vendor ID (11db = SEGA), Device ID (16c3 = 315-5827) */
}
@@ -1750,13 +1750,13 @@ READ64_MEMBER(model3_state::model3_security_r)
case 0x00/8: return 0; /* status */
case 0x1c/8: /* security board data read */
{
- if (mame_stricmp(machine().system().name, "vs299") == 0 ||
- mame_stricmp(machine().system().name, "vs2v991") == 0)
+ if (core_stricmp(machine().system().name, "vs299") == 0 ||
+ core_stricmp(machine().system().name, "vs2v991") == 0)
{
return (UINT64)vs299_prot_data[m_prot_data_ptr++] << 48;
}
- else if (mame_stricmp(machine().system().name, "swtrilgy") == 0 ||
- mame_stricmp(machine().system().name, "swtrilgya") == 0)
+ else if (core_stricmp(machine().system().name, "swtrilgy") == 0 ||
+ core_stricmp(machine().system().name, "swtrilgya") == 0)
{
UINT64 data = (UINT64)swt_prot_data[m_prot_data_ptr++] << 16;
if (m_prot_data_ptr > 0x38)
@@ -1765,7 +1765,7 @@ READ64_MEMBER(model3_state::model3_security_r)
}
return data;
}
- else if (mame_stricmp(machine().system().name, "fvipers2") == 0)
+ else if (core_stricmp(machine().system().name, "fvipers2") == 0)
{
UINT64 data = (UINT64)fvipers2_prot_data[m_prot_data_ptr++] << 16;
if (m_prot_data_ptr >= 0x41)
@@ -1774,8 +1774,8 @@ READ64_MEMBER(model3_state::model3_security_r)
}
return data;
}
- else if (mame_stricmp(machine().system().name, "spikeout") == 0 ||
- mame_stricmp(machine().system().name, "spikeofe") == 0)
+ else if (core_stricmp(machine().system().name, "spikeout") == 0 ||
+ core_stricmp(machine().system().name, "spikeofe") == 0)
{
UINT64 data = (UINT64)spikeout_prot_data[m_prot_data_ptr++] << 16;
if (m_prot_data_ptr >= 0x55)
@@ -1784,8 +1784,8 @@ READ64_MEMBER(model3_state::model3_security_r)
}
return data;
}
- else if (mame_stricmp(machine().system().name, "eca") == 0 ||
- mame_stricmp(machine().system().name, "ecax") == 0)
+ else if (core_stricmp(machine().system().name, "eca") == 0 ||
+ core_stricmp(machine().system().name, "ecax") == 0)
{
UINT64 data = (UINT64)eca_prot_data[m_prot_data_ptr++] << 16;
if (m_prot_data_ptr >= 0x31)
@@ -1794,7 +1794,7 @@ READ64_MEMBER(model3_state::model3_security_r)
}
return data;
}
- else if (mame_stricmp(machine().system().name, "oceanhun") == 0)
+ else if (core_stricmp(machine().system().name, "oceanhun") == 0)
{
UINT64 data = (UINT64)oceanhun_prot_data[m_prot_data_ptr++] << 16;
if (m_prot_data_ptr >= 58)
diff --git a/src/mame/drivers/mpu4hw.c b/src/mame/drivers/mpu4hw.c
index 5eb45603290..e2652172aef 100644
--- a/src/mame/drivers/mpu4hw.c
+++ b/src/mame/drivers/mpu4hw.c
@@ -945,7 +945,7 @@ WRITE8_MEMBER(mpu4_state::pia_ic5_porta_w)
awp_draw_reel(2);
}
- if (mame_stricmp(machine().system().name, "m4gambal") == 0)
+ if (core_stricmp(machine().system().name, "m4gambal") == 0)
{
/* The 'Gamball' device is a unique piece of mechanical equipment, designed to
provide a truly fair hi-lo gamble for an AWP. Functionally, it consists of
diff --git a/src/mame/drivers/nwk-tr.c b/src/mame/drivers/nwk-tr.c
index b2021265907..c2b890726e8 100644
--- a/src/mame/drivers/nwk-tr.c
+++ b/src/mame/drivers/nwk-tr.c
@@ -501,9 +501,9 @@ WRITE32_MEMBER(nwktr_state::lanc2_w)
{
// TODO: check if these should be transferred via PPC DMA.
- if (mame_stricmp(machine().system().name, "thrilld") == 0 ||
- mame_stricmp(machine().system().name, "thrilldb") == 0 ||
- mame_stricmp(machine().system().name, "thrilldae") == 0)
+ if (core_stricmp(machine().system().name, "thrilld") == 0 ||
+ core_stricmp(machine().system().name, "thrilldb") == 0 ||
+ core_stricmp(machine().system().name, "thrilldae") == 0)
{
m_work_ram[(0x3ffed0/4) + 0] = 0x472a3731; // G*71
m_work_ram[(0x3ffed0/4) + 1] = 0x33202020; // 3
@@ -515,7 +515,7 @@ WRITE32_MEMBER(nwktr_state::lanc2_w)
m_work_ram[(0x3fff40/4) + 2] = 0x19994a41; // JA
m_work_ram[(0x3fff40/4) + 3] = 0x4100a9b1; // A
}
- else if (mame_stricmp(machine().system().name, "racingj2") == 0)
+ else if (core_stricmp(machine().system().name, "racingj2") == 0)
{
m_work_ram[(0x3ffc80/4) + 0] = 0x47453838; // GE88
m_work_ram[(0x3ffc80/4) + 1] = 0x38003030; // 8 00
diff --git a/src/mess/drivers/a2600.c b/src/mess/drivers/a2600.c
index 1d3b2fcd27c..2496c5570e4 100644
--- a/src/mess/drivers/a2600.c
+++ b/src/mess/drivers/a2600.c
@@ -614,7 +614,7 @@ DEVICE_IMAGE_LOAD_MEMBER( a2600_state, a2600_cart )
for (int i = 0; i < ARRAY_LENGTH(mapper_types) && m_banking_mode == 0xff; i++)
{
- if (!mame_stricmp(mapper, mapper_types[i].mapper_name))
+ if (!core_stricmp(mapper, mapper_types[i].mapper_name))
{
m_banking_mode = mapper_types[i].mapper_type;
}
diff --git a/src/mess/drivers/atari400.c b/src/mess/drivers/atari400.c
index f598bbdbf10..3b1967fe51e 100644
--- a/src/mess/drivers/atari400.c
+++ b/src/mess/drivers/atari400.c
@@ -1874,7 +1874,7 @@ int a400_state::a800_get_pcb_id(const char *pcb)
for (i = 0; i < ARRAY_LENGTH(pcb_list); i++)
{
- if (!mame_stricmp(pcb_list[i].pcb_name, pcb))
+ if (!core_stricmp(pcb_list[i].pcb_name, pcb))
return pcb_list[i].pcb_id;
}
diff --git a/src/mess/drivers/esq5505.c b/src/mess/drivers/esq5505.c
index 62835cd1fa2..70b2bfdf145 100644
--- a/src/mess/drivers/esq5505.c
+++ b/src/mess/drivers/esq5505.c
@@ -293,7 +293,7 @@ void esq5505_state::machine_reset()
// on VFX, bit 0 is 1 for 'cartridge present'.
// on VFX-SD and later, bit 0 is 1 for floppy present, bit 1 is 1 for cartridge present
- if (mame_stricmp(machine().system().name, "vfx") == 0)
+ if (core_stricmp(machine().system().name, "vfx") == 0)
{
// todo: handle VFX cart-in when we support cartridges
m_duart->ip0_w(ASSERT_LINE);
diff --git a/src/mess/drivers/microvsn.c b/src/mess/drivers/microvsn.c
index 96a9697feba..ae82cc1a260 100644
--- a/src/mess/drivers/microvsn.c
+++ b/src/mess/drivers/microvsn.c
@@ -572,7 +572,7 @@ DEVICE_IMAGE_LOAD_MEMBER(microvision_state,microvision_cart)
for (int i = 0; i < ARRAY_LENGTH(pcb_types) && m_pcb_type == microvision_state::PCB_TYPE_UNKNOWN; i++ )
{
- if (!mame_stricmp(pcb, pcb_types[i].pcb_name))
+ if (!core_stricmp(pcb, pcb_types[i].pcb_name))
{
m_pcb_type = pcb_types[i].pcbtype;
}
@@ -593,7 +593,7 @@ DEVICE_IMAGE_LOAD_MEMBER(microvision_state,microvision_cart)
for ( int i = 0; i < ARRAY_LENGTH(rc_types) && m_rc_type == microvision_state::RC_TYPE_UNKNOWN; i++ )
{
- if (!mame_stricmp(rc, rc_types[i].rc_name))
+ if (!core_stricmp(rc, rc_types[i].rc_name))
{
m_rc_type = rc_types[i].rctype;
}
diff --git a/src/mess/drivers/vc4000.c b/src/mess/drivers/vc4000.c
index de42f8a6c72..9e076ea2c60 100644
--- a/src/mess/drivers/vc4000.c
+++ b/src/mess/drivers/vc4000.c
@@ -579,7 +579,7 @@ QUICKLOAD_LOAD_MEMBER( vc4000_state,vc4000)
}
else
{
- if (mame_stricmp(image.filetype(), "tvc")==0)
+ if (core_stricmp(image.filetype(), "tvc")==0)
{
if (quick_data[0] != 2)
{
@@ -620,7 +620,7 @@ QUICKLOAD_LOAD_MEMBER( vc4000_state,vc4000)
}
}
else
- if (mame_stricmp(image.filetype(), "pgm")==0)
+ if (core_stricmp(image.filetype(), "pgm")==0)
{
if (quick_data[0] != 0)
{
diff --git a/src/mess/machine/a7800.c b/src/mess/machine/a7800.c
index b5075557567..218a73d04bb 100644
--- a/src/mess/machine/a7800.c
+++ b/src/mess/machine/a7800.c
@@ -238,7 +238,7 @@ UINT16 a7800_state::a7800_get_pcb_id(const char *pcb)
for (i = 0; i < ARRAY_LENGTH(pcb_list); i++)
{
- if (!mame_stricmp(pcb_list[i].pcb_name, pcb))
+ if (!core_stricmp(pcb_list[i].pcb_name, pcb))
return pcb_list[i].type;
}
diff --git a/src/mess/machine/cbm_snqk.c b/src/mess/machine/cbm_snqk.c
index c5c6d0aea87..116d5b2f3d0 100644
--- a/src/mess/machine/cbm_snqk.c
+++ b/src/mess/machine/cbm_snqk.c
@@ -34,11 +34,11 @@ int general_cbm_loadsnap( device_image_interface &image, const char *file_type,
if (!file_type)
goto error;
- if (!mame_stricmp(file_type, "prg"))
+ if (!core_stricmp(file_type, "prg"))
{
/* prg files */
}
- else if (!mame_stricmp(file_type, "p00"))
+ else if (!core_stricmp(file_type, "p00"))
{
/* p00 files */
if (image.fread( buffer, sizeof(buffer)) != sizeof(buffer))
@@ -48,7 +48,7 @@ int general_cbm_loadsnap( device_image_interface &image, const char *file_type,
image.fseek(26, SEEK_SET);
snapshot_size -= 26;
}
- else if (!mame_stricmp(file_type, "t64"))
+ else if (!core_stricmp(file_type, "t64"))
{
/* t64 files - for GB64 Single T64s loading to x0801 - header is always the same size */
if (image.fread( buffer, sizeof(buffer)) != sizeof(buffer))
@@ -65,7 +65,7 @@ int general_cbm_loadsnap( device_image_interface &image, const char *file_type,
image.fread( &address, 2);
address = LITTLE_ENDIANIZE_INT16(address);
- if (!mame_stricmp(file_type, "t64"))
+ if (!core_stricmp(file_type, "t64"))
address = 2049;
snapshot_size -= 2;
diff --git a/src/mess/machine/intv.c b/src/mess/machine/intv.c
index 97e7427980a..d35c7a95782 100644
--- a/src/mess/machine/intv.c
+++ b/src/mess/machine/intv.c
@@ -410,7 +410,7 @@ int intv_state::intv_load_rom_file(device_image_interface &image)
const char *filetype = image.filetype();
/* if it is in .rom format, we enter here */
- if (!mame_stricmp (filetype, "rom"))
+ if (!core_stricmp (filetype, "rom"))
{
image.fread( &temp, 1); /* header */
if (temp != 0xa8)
diff --git a/src/mess/machine/lynx.c b/src/mess/machine/lynx.c
index 79ca0ce3d6c..4575dd52be3 100644
--- a/src/mess/machine/lynx.c
+++ b/src/mess/machine/lynx.c
@@ -2087,7 +2087,7 @@ DEVICE_IMAGE_LOAD_MEMBER( lynx_state, lynx_cart )
filetype = image.filetype();
- if (!mame_stricmp (filetype, "lnx"))
+ if (!core_stricmp (filetype, "lnx"))
{
if (image.fread( header, 0x40) != 0x40)
return IMAGE_INIT_FAIL;
@@ -2106,7 +2106,7 @@ DEVICE_IMAGE_LOAD_MEMBER( lynx_state, lynx_cart )
size -= 0x40;
}
- else if (!mame_stricmp (filetype, "lyx"))
+ else if (!core_stricmp (filetype, "lyx"))
{
/* 2008-10 FP: FIXME: .lyx file don't have an header, hence they miss "lynx_granularity"
(see above). What if bank 0 has to be loaded elsewhere? And what about bank 1?
diff --git a/src/mess/machine/mbee.c b/src/mess/machine/mbee.c
index de3376749b6..4154029aa06 100644
--- a/src/mess/machine/mbee.c
+++ b/src/mess/machine/mbee.c
@@ -767,7 +767,7 @@ QUICKLOAD_LOAD_MEMBER( mbee_state, mbee )
UINT16 i, j;
UINT8 data, sw = ioport("CONFIG")->read() & 1; /* reading the dipswitch: 1 = autorun */
- if (!mame_stricmp(image.filetype(), "mwb"))
+ if (!core_stricmp(image.filetype(), "mwb"))
{
/* mwb files - standard basic files */
for (i = 0; i < quickload_size; i++)
@@ -797,7 +797,7 @@ QUICKLOAD_LOAD_MEMBER( mbee_state, mbee )
else
space.write_word(0xa2,0x8517);
}
- else if (!mame_stricmp(image.filetype(), "com"))
+ else if (!core_stricmp(image.filetype(), "com"))
{
/* com files - most com files are just machine-language games with a wrapper and don't need cp/m to be present */
for (i = 0; i < quickload_size; i++)
@@ -821,7 +821,7 @@ QUICKLOAD_LOAD_MEMBER( mbee_state, mbee )
if (sw) m_maincpu->set_pc(0x100);
}
- else if (!mame_stricmp(image.filetype(), "bee"))
+ else if (!core_stricmp(image.filetype(), "bee"))
{
/* bee files - machine-language games that start at 0900 */
for (i = 0; i < quickload_size; i++)
diff --git a/src/mess/machine/msx.c b/src/mess/machine/msx.c
index 08183994c4b..b80ff21b78d 100644
--- a/src/mess/machine/msx.c
+++ b/src/mess/machine/msx.c
@@ -125,7 +125,7 @@ DEVICE_IMAGE_LOAD_MEMBER(msx_state,msx_cart)
for (int i = 0; i < ARRAY_LENGTH(mapper_types) && type < 0; i++)
{
- if (!mame_stricmp(mapper, mapper_types[i].mapper_name))
+ if (!core_stricmp(mapper, mapper_types[i].mapper_name))
type = mapper_types[i].mapper_type;
}
diff --git a/src/mess/machine/spec_snqk.c b/src/mess/machine/spec_snqk.c
index 040521f8711..bb7417155dc 100644
--- a/src/mess/machine/spec_snqk.c
+++ b/src/mess/machine/spec_snqk.c
@@ -54,7 +54,7 @@ static void log_quickload(running_machine &machine, const char *type, UINT32 sta
tempstring.catprintf("Start: 0x%04X End: 0x%04X Exec: ", start, start + length - 1);
logerror("Quickload loaded.\n");
- if (!mame_stricmp(exec_format, EXEC_NA))
+ if (!core_stricmp(exec_format, EXEC_NA))
tempstring.cat("N/A");
else
{
@@ -120,7 +120,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
image.fread(snapshot_data, snapshot_size);
- if (!mame_stricmp(file_type, "sna"))
+ if (!core_stricmp(file_type, "sna"))
{
if ((snapshot_size != SNA48_SIZE) && (snapshot_size != SNA128_SIZE_1) && (snapshot_size != SNA128_SIZE_2))
{
@@ -129,7 +129,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_sna(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "sp"))
+ else if (!core_stricmp(file_type, "sp"))
{
if ((snapshot_data[0] != 'S' && snapshot_data[1] != 'P') && (snapshot_size != SP_NEW_SIZE_16K && snapshot_size != SP_NEW_SIZE_48K))
{
@@ -141,7 +141,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_sp(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "ach"))
+ else if (!core_stricmp(file_type, "ach"))
{
if (snapshot_size != ACH_SIZE)
{
@@ -150,7 +150,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_ach(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "prg"))
+ else if (!core_stricmp(file_type, "prg"))
{
if (snapshot_size != PRG_SIZE)
{
@@ -159,7 +159,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_prg(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "plusd"))
+ else if (!core_stricmp(file_type, "plusd"))
{
if ((snapshot_size != PLUSD48_SIZE) && (snapshot_size != PLUSD128_SIZE))
{
@@ -168,7 +168,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_plusd(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "sem"))
+ else if (!core_stricmp(file_type, "sem"))
{
if (snapshot_data[0] != 0x05 && snapshot_data[1] != 'S' && \
snapshot_data[2] != 'P' && snapshot_data[3] != 'E' && \
@@ -182,7 +182,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_sem(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "sit"))
+ else if (!core_stricmp(file_type, "sit"))
{
if (snapshot_size != SIT_SIZE)
{
@@ -191,7 +191,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_sit(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "zx"))
+ else if (!core_stricmp(file_type, "zx"))
{
if (snapshot_size != ZX_SIZE)
{
@@ -200,7 +200,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_zx(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "snp"))
+ else if (!core_stricmp(file_type, "snp"))
{
if (snapshot_size != SNP_SIZE)
{
@@ -209,7 +209,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_snp(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "snx"))
+ else if (!core_stricmp(file_type, "snx"))
{
if (snapshot_data[0] != 'X' && snapshot_data[1] != 'S' && \
snapshot_data[2] != 'N' && snapshot_data[3] != 'A')
@@ -219,7 +219,7 @@ SNAPSHOT_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_snx(machine(), snapshot_data, snapshot_size);
}
- else if (!mame_stricmp(file_type, "frz"))
+ else if (!core_stricmp(file_type, "frz"))
{
if (snapshot_size != FRZ_SIZE)
{
@@ -2461,7 +2461,7 @@ QUICKLOAD_LOAD_MEMBER( spectrum_state,spectrum)
image.fread(quickload_data, quickload_size);
- if (!mame_stricmp(file_type, "scr"))
+ if (!core_stricmp(file_type, "scr"))
{
if ((quickload_size != SCR_SIZE) && (quickload_size != SCR_BITMAP))
{
@@ -2470,7 +2470,7 @@ QUICKLOAD_LOAD_MEMBER( spectrum_state,spectrum)
}
spectrum_setup_scr(machine(), quickload_data, quickload_size);
}
- else if (!mame_stricmp(file_type, "raw"))
+ else if (!core_stricmp(file_type, "raw"))
{
if (quickload_size != RAW_SIZE)
{
diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c
index 3f3a7256101..75fccae21d2 100644
--- a/src/osd/windows/winmain.c
+++ b/src/osd/windows/winmain.c
@@ -795,7 +795,7 @@ osd_font windows_osd_interface::font_open(const char *_name, int &height)
// if it doesn't match our request, fail
char *utf = utf8_from_tstring(realname);
- int result = mame_stricmp(utf, name);
+ int result = core_stricmp(utf, name);
osd_free(utf);
// if we didn't match, nuke our font and fall back