From: <pa...@us...> - 2003-10-10 11:03:48
|
Update of /cvsroot/fuse-emulator/fuse In directory sc8-pr-cvs1:/tmp/cvs-serv29447 Modified Files: printer.c settings.dat Log Message: Add option to disable ZX (etc) printer. Index: printer.c =================================================================== RCS file: /cvsroot/fuse-emulator/fuse/printer.c,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** printer.c 11 Jul 2003 11:03:25 -0000 1.14 --- printer.c 10 Oct 2003 11:03:43 -0000 1.15 *************** *** 376,379 **** --- 376,381 ---- libspectrum_byte printer_zxp_read(libspectrum_word port GCC_UNUSED) { + if(!settings_current.printer) + return(0xff); if(!printer_graphics_enabled) return(0xff); *************** *** 420,423 **** --- 422,427 ---- void printer_zxp_write(libspectrum_word port GCC_UNUSED,libspectrum_byte b) { + if(!settings_current.printer) + return; if(!zxpspeed) { *************** *** 612,615 **** --- 616,621 ---- libspectrum_byte printer_parallel_read(libspectrum_word port GCC_UNUSED) { + if(!settings_current.printer) + return(0xff); /* bit 0 = busy. other bits high? */ *************** *** 621,624 **** --- 627,632 ---- libspectrum_byte b) { + if(!settings_current.printer) + return; parallel_data=b; } Index: settings.dat =================================================================== RCS file: /cvsroot/fuse-emulator/fuse/settings.dat,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** settings.dat 9 Oct 2003 11:16:44 -0000 1.25 --- settings.dat 10 Oct 2003 11:03:43 -0000 1.26 *************** *** 46,49 **** --- 46,50 ---- colour_tv, boolean, 1 confirm_dangerous, boolean, 1 + printer, boolean, 0 sound_device, string, NULL, 'd' |