summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/x76f041.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-12-11 03:39:20 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-12-11 03:39:20 +0000
commit506da3c4321292afd7c635aff2c1310c6d78d5f9 (patch)
tree73e6fdcb47a2a4438dcc9141e4d48761f9eec53a /src/emu/machine/x76f041.c
parent4c0948ce0032ecb1e8c82175b9361aa1b9c17878 (diff)
From: Atari Ace [atari_ace@verizon.net]
Sent: Wednesday, December 10, 2008 9:27 AM To: submit@mamedev.org Cc: atariace@hotmail.com Subject: [patch] Add machine to some emu/machine init methods Hi mamedev, This patch widens some machine init interfaces to pass the machine parameter, allowing more Machine global references to be eliminated. Eventually most of these need to be converted to devices, but this change reduces the deprecation surface in the meantime. I also attached the script I used to do the initial changes to the drivers, which handled about 90% of the cases without further editing. ~aa
Diffstat (limited to 'src/emu/machine/x76f041.c')
-rw-r--r--src/emu/machine/x76f041.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/machine/x76f041.c b/src/emu/machine/x76f041.c
index 019d2038580..d9726d87e26 100644
--- a/src/emu/machine/x76f041.c
+++ b/src/emu/machine/x76f041.c
@@ -108,9 +108,8 @@ static struct x76f041_chip x76f041[ X76F041_MAXCHIP ];
#define STATE_READ_CONFIGURATION_REGISTERS ( 8 )
#define STATE_WRITE_CONFIGURATION_REGISTERS ( 9 )
-void x76f041_init( int chip, UINT8 *data )
+void x76f041_init( running_machine *machine, int chip, UINT8 *data )
{
- running_machine *machine = Machine;
int offset;
struct x76f041_chip *c;