mirror of
https://github.com/holub/mame
synced 2025-10-07 17:27:06 +03:00
fixed compiling after share were changed to a tag, not tested if this is the correct behaviour.
This commit is contained in:
parent
0fd8c755ff
commit
2c3c41b08f
@ -71,7 +71,7 @@ struct _cheat_region_map
|
|||||||
{
|
{
|
||||||
UINT64 offset;
|
UINT64 offset;
|
||||||
UINT64 endoffset;
|
UINT64 endoffset;
|
||||||
UINT8 share;
|
const char *share;
|
||||||
UINT8 disabled;
|
UINT8 disabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1789,7 +1789,7 @@ static void execute_cheatinit(running_machine *machine, int ref, int params, con
|
|||||||
cheat_region[region_count].disabled = (entry->write.type == AMH_RAM) ? FALSE : TRUE;
|
cheat_region[region_count].disabled = (entry->write.type == AMH_RAM) ? FALSE : TRUE;
|
||||||
|
|
||||||
/* disable double share regions */
|
/* disable double share regions */
|
||||||
if (entry->share != 0)
|
if (entry->share != NULL)
|
||||||
for (i = 0; i < region_count; i++)
|
for (i = 0; i < region_count; i++)
|
||||||
if (cheat_region[i].share == entry->share)
|
if (cheat_region[i].share == entry->share)
|
||||||
cheat_region[region_count].disabled = TRUE;
|
cheat_region[region_count].disabled = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user