Search
lxdream.org :: lxdream/src/maple/vmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/maple/vmu.c
changeset 1298:d0eb2307b847
prev1172:43eef98ff265
author nkeynes
date Fri May 29 18:47:05 2015 +1000 (8 years ago)
permissions -rw-r--r--
last change Fix test case
file annotate diff log raw
1.1 --- a/src/maple/vmu.c Wed May 11 08:45:31 2011 +1000
1.2 +++ b/src/maple/vmu.c Fri May 29 18:47:05 2015 +1000
1.3 @@ -62,6 +62,8 @@
1.4 const gchar *oldvalue, const gchar *value );
1.5 static int vmu_get_condition( maple_device_t dev, int function, unsigned char *outbuf,
1.6 unsigned int *outlen );
1.7 +static int vmu_set_condition(struct maple_device *dev, int function,
1.8 + unsigned char *inbuf, unsigned int buflen);
1.9 static int vmu_get_meminfo( maple_device_t dev, int function, unsigned int pt,
1.10 unsigned char *outbuf, unsigned int *outlen );
1.11 static void vmu_attach(struct maple_device *dev);
1.12 @@ -89,7 +91,7 @@
1.13 VMU_IDENT, VMU_VERSION,
1.14 vmu_get_config,
1.15 vmu_attach, vmu_detach, vmu_destroy,
1.16 - vmu_clone, NULL, NULL, vmu_get_condition, NULL,
1.17 + vmu_clone, NULL, NULL, vmu_get_condition, vmu_set_condition,
1.18 vmu_get_meminfo, vmu_read_block, vmu_write_block, NULL, NULL },
1.19 NULL, {0},
1.20 {"Sega VMU", vmu_set_config_value, NULL, NULL,
1.21 @@ -160,7 +162,7 @@
1.22 static void vmu_destroy( maple_device_t dev )
1.23 {
1.24 vmu_device_t vmu = (vmu_device_t)dev;
1.25 - free( dev );
1.26 + free( vmu );
1.27 }
1.28
1.29 static int vmu_get_condition(struct maple_device *dev, int function,
.