summaryrefslogtreecommitdiffstatshomepage
path: root/src/ldplayer/ldplayer.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-08-13 04:55:32 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-08-13 04:55:32 +0000
commit40cc74b98f4b106ef77e6902e298704437ced114 (patch)
tree8d05ca539e484280c3567960d740bb5cdf641e1e /src/ldplayer/ldplayer.c
parent259fb90602e9ad68211032f1545d7df2c20d23e1 (diff)
> -----Original Message-----
> From: Atari Ace [mailto:atari_ace@verizon.net] > Sent: Monday, August 03, 2009 10:52 PM > To: submit@mamedev.org > Cc: atariace@hotmail.com > Subject: [patch] De-globalize romload.c/validity.c > > Hi mamedev, > > Static and global variables in the core of MAME have slowly been > replaced with opaque structures latched onto the running machine. This > patch extends this idiom to two more files, romload.c and validity.c. > validity.c in fact didn't need any global state (it was used only to > pass data between function calls), and romload.c already had a struct > that largely served that purpose. > > ~aa
Diffstat (limited to 'src/ldplayer/ldplayer.c')
-rw-r--r--src/ldplayer/ldplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldplayer/ldplayer.c b/src/ldplayer/ldplayer.c
index 3be984e31a5..16453952314 100644
--- a/src/ldplayer/ldplayer.c
+++ b/src/ldplayer/ldplayer.c
@@ -141,7 +141,7 @@ static chd_file *get_disc(const device_config *device)
if (image_file == NULL)
fatalerror("No valid image file found!\n");
- return get_disk_handle("laserdisc");
+ return get_disk_handle(device->machine, "laserdisc");
}