summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-06-23 08:32:42 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-06-23 08:32:42 +0000
commit57c35a0efcd7e1d22b416f34dd58d51673536152 (patch)
treef39b275a1db76b22931656b4f11a35d51c8f79bf /src/emu/debug
parentb3743812df365ec03c4af5985ba7499fdc48fb3a (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/debug')
-rw-r--r--src/emu/debug/debugvw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/debug/debugvw.c b/src/emu/debug/debugvw.c
index 11935897d80..24ae7a8c305 100644
--- a/src/emu/debug/debugvw.c
+++ b/src/emu/debug/debugvw.c
@@ -2379,7 +2379,7 @@ static void memory_write_byte(debug_view_memory *memdata, offs_t offs, UINT8 dat
/* hack for FD1094 editing */
#ifdef FD1094_HACK
- if (memdata->raw_base == memory_region(REGION_USER2))
+ if (memdata->raw_base == memory_region(machine, REGION_USER2))
{
extern void fd1094_regenerate_key(void);
fd1094_regenerate_key();