summaryrefslogtreecommitdiff
path: root/games/colem/rom_path.diff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-06-27 15:42:58 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-01 07:42:31 +0700
commit3e5a22408094746c86bc6b04cd4770333dfce46e (patch)
tree1f5aeae5544f540782485bbd2e70f71cb8fddd78 /games/colem/rom_path.diff
parent891f9deba034af49a97d85cb741eeaabff8fa707 (diff)
downloadslackbuilds-3e5a22408094746c86bc6b04cd4770333dfce46e.tar.gz
games/colem: Updated for version 4.0.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/colem/rom_path.diff')
-rw-r--r--games/colem/rom_path.diff28
1 files changed, 14 insertions, 14 deletions
diff --git a/games/colem/rom_path.diff b/games/colem/rom_path.diff
index e01edbf43d..c3c05cce28 100644
--- a/games/colem/rom_path.diff
+++ b/games/colem/rom_path.diff
@@ -1,6 +1,6 @@
diff -Naur a/ColEm/Coleco.c b/ColEm/Coleco.c
---- a/ColEm/Coleco.c 2008-03-30 12:53:24.000000000 -0400
-+++ b/ColEm/Coleco.c 2009-09-29 17:49:32.000000000 -0400
+--- a/ColEm/Coleco.c 2017-01-15 13:10:40.000000000 -0500
++++ b/ColEm/Coleco.c 2017-06-27 15:30:39.448547570 -0400
@@ -19,6 +19,9 @@
#include <stdlib.h>
#include <ctype.h>
@@ -11,8 +11,8 @@ diff -Naur a/ColEm/Coleco.c b/ColEm/Coleco.c
#ifdef __WATCOMC__
#include <direct.h>
-@@ -69,6 +72,46 @@
- #define fwrite(B,N,L,F) gzwrite(F,B,(L)*(N))
+@@ -111,6 +114,46 @@
+ #define feof(F) gzeof((gzFile)(F))
#endif
+/* 20090929 bkw: smart_fopen() searches for ROMs in various places
@@ -55,10 +55,10 @@ diff -Naur a/ColEm/Coleco.c b/ColEm/Coleco.c
+ return NULL;
+}
+
- /** StartColeco() ********************************************/
- /** Allocate memory, load ROM image, initialize hardware, **/
- /** CPU and start the emulation. This function returns 0 in **/
-@@ -134,7 +177,7 @@
+ /** gethex() *************************************************/
+ /** Parse hexadecimal byte. **/
+ /*************************************************************/
+@@ -212,7 +255,7 @@
/* COLECO.ROM: OS7 (ColecoVision BIOS) */
if(Verbose) printf(" Opening COLECO.ROM...");
@@ -67,21 +67,21 @@ diff -Naur a/ColEm/Coleco.c b/ColEm/Coleco.c
else
{
if(fread(ROM_BIOS,1,0x2000,F)!=0x2000) P="SHORT FILE";
-@@ -145,7 +188,7 @@
+@@ -223,7 +266,7 @@
if(!P)
{
if(Verbose) printf("OK\n Opening WRITER.ROM...");
-- if(F=fopen("WRITER.ROM","rb"))
-+ if(F=smart_fopen("WRITER.ROM","rb"))
+- if((F=fopen("WRITER.ROM","rb")))
++ if((F=smart_fopen("WRITER.ROM","rb")))
{
if(fread(ROM_WRITER,1,0x8000,F)==0x8000) ++AdamROMs;
fclose(F);
-@@ -157,7 +200,7 @@
+@@ -235,7 +278,7 @@
if(!P&&AdamROMs)
{
if(Verbose) printf(" Opening EOS.ROM...");
-- if(F=fopen("EOS.ROM","rb"))
-+ if(F=smart_fopen("EOS.ROM","rb"))
+- if((F=fopen("EOS.ROM","rb")))
++ if((F=smart_fopen("EOS.ROM","rb")))
{
if(fread(ROM_EOS,1,0x2000,F)==0x2000) ++AdamROMs;
fclose(F);