File: 07_disable-autoload.patch

package info (click to toggle)
fuse-emulator 1.0.0.1a%2Bdfsg1-4
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 9,568 kB
  • sloc: ansic: 67,895; sh: 10,265; perl: 3,386; makefile: 787; yacc: 227; lex: 139
file content (24 lines) | stat: -rw-r--r-- 897 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Alberto Garcia <agarcia@igalia.com>
Subject: The auto load feature doesn't work with OpenSE BASIC, so don't use it
Forwarded: http://sourceforge.net/mailarchive/message.php?msg_id=27674912
Index: fuse-emulator/tape.c
===================================================================
--- fuse-emulator.orig/tape.c
+++ fuse-emulator/tape.c
@@ -140,6 +140,7 @@ tape_read_buffer( unsigned char *buffer,
 		  const char *filename, int autoload )
 {
   int error;
+  extern int using_opense_rom;
 
   if( libspectrum_tape_present( tape ) ) {
     error = tape_close(); if( error ) return error;
@@ -151,7 +152,7 @@ tape_read_buffer( unsigned char *buffer,
   tape_modified = 0;
   ui_tape_browser_update( UI_TAPE_BROWSER_NEW_TAPE, NULL );
 
-  if( autoload ) {
+  if( autoload && ! using_opense_rom ) {
     error = tape_autoload( machine_current->machine );
     if( error ) return error;
   }