diff options
author | 2008-06-23 08:32:42 +0000 | |
---|---|---|
committer | 2008-06-23 08:32:42 +0000 | |
commit | 57c35a0efcd7e1d22b416f34dd58d51673536152 (patch) | |
tree | f39b275a1db76b22931656b4f11a35d51c8f79bf /src/emu/ui.c | |
parent | b3743812df365ec03c4af5985ba7499fdc48fb3a (diff) |
From: Atari Ace [mailto:atari_ace@verizon.net]
Subject: [patch] memory_region madness reloaded
Hi mamedev,
The memory_region and memory_region_length functions are probably the
two most common functions in MAME that don't take a machine parameter
but should given the syntax of the related apis memory_region_type and
memory_region_flags. Clearly they didn't get the parameter because of
the sheer number of changes needed to change the apis. This pair of
patches makes the change, and deals with the consequences.
The second patch then changes the api for memory_region and
memory_region_length, and fixes the fallout. It generally plumbs
through machine parameters where needed, except for the case of sound
apis which I deferred doing so till later. This increased the number
of deprecat.h includes by ~50. Given it is a massive patch, there are
bound to be a few mistakes in it (I had to make ~20% of the changes by
hand), but I exercised care and reviewed the patch several times to
minimize the problems.
Diffstat (limited to 'src/emu/ui.c')
-rw-r--r-- | src/emu/ui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/ui.c b/src/emu/ui.c index b72d504fe17..82479d2d93e 100644 --- a/src/emu/ui.c +++ b/src/emu/ui.c @@ -1235,7 +1235,7 @@ static UINT32 handler_ingame(running_machine *machine, UINT32 state) /* let the cheat engine display its stuff */ if (options_get_bool(mame_options(), OPTION_CHEAT)) - cheat_display_watches(); + cheat_display_watches(machine); /* display any popup messages */ if (osd_ticks() < popup_text_end) |