diff options
author | B. Watson <yalhcru@gmail.com> | 2014-01-30 17:02:44 +0700 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2014-02-01 00:40:30 -0600 |
commit | cc3ee0bbc2a4d65982aed9d1614112bd11b0e383 (patch) | |
tree | 889b2d0fe2d772caf5e125937041d6581976410a /games/yae/patches/defaultromlocation.diff | |
parent | 784b68cd9fd28c0f0e40c9c519ebffda222f8ad2 (diff) |
games/yae: Added (Yet another Apple Emulator).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
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 0000000000000..ee97a9bbb9e01 --- /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; |