diff options
Diffstat (limited to 'games/yae/patches/defaultromlocation.diff')
-rw-r--r-- | games/yae/patches/defaultromlocation.diff | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/games/yae/patches/defaultromlocation.diff b/games/yae/patches/defaultromlocation.diff new file mode 100644 index 0000000000..ee97a9bbb9 --- /dev/null +++ b/games/yae/patches/defaultromlocation.diff @@ -0,0 +1,35 @@ +diff -Naur yae-0.7/disk2.c yae-0.7.patched/disk2.c +--- yae-0.7/disk2.c 2007-04-03 17:49:22.000000000 -0400 ++++ yae-0.7.patched/disk2.c 2013-08-28 19:16:54.000000000 -0400 +@@ -105,8 +105,9 @@ + FILE *f; + + f = fopen( DiskROM, "rb" ); ++ if(!f) f = fopen("/usr/share/yae/DISK.ROM", "rb"); + if ( !f ) { +- fprintf( stderr, "Cannot read disk II boot rom %s\n", DiskROM ); ++ fprintf( stderr, "Cannot read disk II boot rom %s or /usr/share/yae/DISK.ROM\n", DiskROM ); + exit(1); + } + fread( boot_ROM, 1, 256, f ); +diff -Naur yae-0.7/memory.c yae-0.7.patched/memory.c +--- yae-0.7/memory.c 2007-04-03 17:42:23.000000000 -0400 ++++ yae-0.7.patched/memory.c 2013-08-28 19:18:13.000000000 -0400 +@@ -88,10 +88,13 @@ + MainMemoryROM[i] = amp; + } + +- if (MachineType < APPLE_IIE) +- loadROMFile( Apple2ROM ); +- else +- loadROMFile( Apple2eROM ); ++ if (MachineType < APPLE_IIE) { ++ if(loadROMFile( Apple2ROM ) != 0) ++ loadROMFile("/usr/share/yae/APPLE2.ROM"); ++ } else { ++ if(loadROMFile( Apple2eROM ) != 0) ++ loadROMFile("/usr/share/yae/APPLE2E.ROM"); ++ } + + for( i = 0; i < 8; i++ ) { + expansion_slot_read[i] = NULL; |