Oliver Stöneberg wrote:
> There is also a download link to all the complete logs. Also be
> aware, that most of those warnings aren't unix or MESS-specific at
> all.
Er, here's the patch.
diff -u -r1.16 model2.c
--- src/drivers/model2.c 24 Feb 2006 13:09:45 -0000 1.16
+++ src/drivers/model2.c 28 Feb 2006 06:10:33 -0000
@@ -199,14 +199,16 @@
if (read_or_write)
{
mame_fwrite(file, model2_backup1, 0x3fff);
- mame_fwrite(file, model2_backup2, 0xff);
+ if (model2_backup2)
+ mame_fwrite(file, model2_backup2, 0xff);
}
else
{
if (file)
{
mame_fread(file, model2_backup1, 0x3fff);
- mame_fread(file, model2_backup2, 0xff);
+ if (model2_backup2)
+ mame_fread(file, model2_backup2, 0xff);
}
}
}