pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/emulators/mednafen



Module Name:    pkgsrc
Committed By:   joerg
Date:           Sat Dec 17 14:24:37 UTC 2016

Modified Files:
        pkgsrc/emulators/mednafen: distinfo
Added Files:
        pkgsrc/emulators/mednafen/patches: patch-src_cdrom_cdromfile.cpp
            patch-src_mempatcher.cpp patch-src_nes_ines.cpp patch-src_psf.cpp
            patch-src_settings.cpp

Log Message:
Don't order pointers relative to 0, check for NULLness.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/emulators/mednafen/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/mednafen/patches/patch-src_cdrom_cdromfile.cpp \
    pkgsrc/emulators/mednafen/patches/patch-src_mempatcher.cpp \
    pkgsrc/emulators/mednafen/patches/patch-src_nes_ines.cpp \
    pkgsrc/emulators/mednafen/patches/patch-src_psf.cpp \
    pkgsrc/emulators/mednafen/patches/patch-src_settings.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/mednafen/distinfo
diff -u pkgsrc/emulators/mednafen/distinfo:1.14 pkgsrc/emulators/mednafen/distinfo:1.15
--- pkgsrc/emulators/mednafen/distinfo:1.14     Tue Nov  3 20:31:00 2015
+++ pkgsrc/emulators/mednafen/distinfo  Sat Dec 17 14:24:37 2016
@@ -1,7 +1,12 @@
-$NetBSD: distinfo,v 1.14 2015/11/03 20:31:00 agc Exp $
+$NetBSD: distinfo,v 1.15 2016/12/17 14:24:37 joerg Exp $
 
 SHA1 (mednafen-0.8.D.3.tar.bz2) = b19b92101853cb653506456fd8ab1c0bb0b6e636
 RMD160 (mednafen-0.8.D.3.tar.bz2) = 546f49a9541ba4d0367fe682aef23cdadf3d7325
 SHA512 (mednafen-0.8.D.3.tar.bz2) = 40c47554ae42025640c754fe4a578f5b6e1adb623418126adca587b2795ae4e6581d6d96ffa497849706a1ea4d11f9962c44df2040ead788670e6314d8a9b7e7
 Size (mednafen-0.8.D.3.tar.bz2) = 2442705 bytes
+SHA1 (patch-src_cdrom_cdromfile.cpp) = 870e5563cc2a0d69826cc8931305aa982303aaf0
+SHA1 (patch-src_mempatcher.cpp) = 43fbb9d00948f485dd61594f10a91fc28fdb84eb
+SHA1 (patch-src_nes_ines.cpp) = e9d3a8c151ffe5e21ad5ddef64a7ba4b95e2b851
+SHA1 (patch-src_psf.cpp) = e3e60fd90cbcb0d5dac32e5ab9bfb71f94a879f1
+SHA1 (patch-src_settings.cpp) = a69cea82eb722418ce2757c37d876bb99b04dfce
 SHA1 (patch-src_wswan_dis_opcodes_inc) = 547ad7a0a7943f1697e64a9607429211fc62fd56

Added files:

Index: pkgsrc/emulators/mednafen/patches/patch-src_cdrom_cdromfile.cpp
diff -u /dev/null pkgsrc/emulators/mednafen/patches/patch-src_cdrom_cdromfile.cpp:1.1
--- /dev/null   Sat Dec 17 14:24:37 2016
+++ pkgsrc/emulators/mednafen/patches/patch-src_cdrom_cdromfile.cpp     Sat Dec 17 14:24:37 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_cdrom_cdromfile.cpp,v 1.1 2016/12/17 14:24:37 joerg Exp $
+
+--- src/cdrom/cdromfile.cpp.orig       2016-12-15 14:22:07.554338091 +0000
++++ src/cdrom/cdromfile.cpp
+@@ -410,7 +410,7 @@ CDRFile *cdrfile_open(const char *path)
+   CDRFILE_TRACK_INFO TmpTrack;
+   memset(&TmpTrack, 0, sizeof(TmpTrack));
+ 
+-  while(fgets(linebuf, 512, fp) > 0)
++  while(fgets(linebuf, 512, fp))
+   {
+    char cmdbuf[512], raw_args[512], args[4][512];
+    int argcount = 0;
Index: pkgsrc/emulators/mednafen/patches/patch-src_mempatcher.cpp
diff -u /dev/null pkgsrc/emulators/mednafen/patches/patch-src_mempatcher.cpp:1.1
--- /dev/null   Sat Dec 17 14:24:37 2016
+++ pkgsrc/emulators/mednafen/patches/patch-src_mempatcher.cpp  Sat Dec 17 14:24:37 2016
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_mempatcher.cpp,v 1.1 2016/12/17 14:24:37 joerg Exp $
+
+--- src/mempatcher.cpp.orig    2016-12-15 14:21:04.855680936 +0000
++++ src/mempatcher.cpp
+@@ -191,7 +191,7 @@ static bool SeekToOurSection(FILE *fp) /
+ {
+  char buf[2048];
+ 
+- while(fgets(buf,2048,fp) > 0)
++ while(fgets(buf,2048,fp))
+  {
+   if(buf[0] == '[')
+   {
+@@ -243,7 +243,7 @@ void MDFN_LoadGameCheats(FILE *override)
+ 
+  if(SeekToOurSection(fp))
+  {
+-  while(fgets(linebuf,2048,fp) > 0)
++  while(fgets(linebuf,2048,fp))
+   { 
+    char namebuf[2048];
+    char *tbuf=linebuf;
+@@ -382,7 +382,7 @@ void MDFN_FlushGameCheats(int nosave)
+   {
+    FILE *tmp_fp = fopen(tmp_fn.c_str(), "wb");
+ 
+-   while(fgets((char*)linebuf, 2048, fp) > 0)
++   while(fgets((char*)linebuf, 2048, fp))
+    {
+     if(linebuf[0] == '[' && !insection)
+     {
Index: pkgsrc/emulators/mednafen/patches/patch-src_nes_ines.cpp
diff -u /dev/null pkgsrc/emulators/mednafen/patches/patch-src_nes_ines.cpp:1.1
--- /dev/null   Sat Dec 17 14:24:37 2016
+++ pkgsrc/emulators/mednafen/patches/patch-src_nes_ines.cpp    Sat Dec 17 14:24:37 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_nes_ines.cpp,v 1.1 2016/12/17 14:24:37 joerg Exp $
+
+--- src/nes/ines.cpp.orig      2016-12-15 14:08:23.897104355 +0000
++++ src/nes/ines.cpp
+@@ -323,7 +323,7 @@ static void SetInput(void)
+       };
+  int x=0;
+ 
+- while(moo[x].input1 > 0 || moo[x].input2 > 0 || moo[x].inputfc > 0)
++ while(moo[x].input1 || moo[x].input2 || moo[x].inputfc)
+  {
+   if(moo[x].crc32==iNESGameCRC32)
+   {
Index: pkgsrc/emulators/mednafen/patches/patch-src_psf.cpp
diff -u /dev/null pkgsrc/emulators/mednafen/patches/patch-src_psf.cpp:1.1
--- /dev/null   Sat Dec 17 14:24:37 2016
+++ pkgsrc/emulators/mednafen/patches/patch-src_psf.cpp Sat Dec 17 14:24:37 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_psf.cpp,v 1.1 2016/12/17 14:24:37 joerg Exp $
+
+--- src/psf.cpp.orig   2016-12-15 14:21:49.256613383 +0000
++++ src/psf.cpp
+@@ -225,7 +225,7 @@ static PSFINFO *LoadPSF(void (*datafunc)
+           {
+            char linebuf[1024];
+ 
+-           while(MDFN_fgets(linebuf,1024,fp)>0)
++           while(MDFN_fgets(linebuf,1024,fp))
+            {
+             int x;
+           char *key=0,*value=0;
Index: pkgsrc/emulators/mednafen/patches/patch-src_settings.cpp
diff -u /dev/null pkgsrc/emulators/mednafen/patches/patch-src_settings.cpp:1.1
--- /dev/null   Sat Dec 17 14:24:37 2016
+++ pkgsrc/emulators/mednafen/patches/patch-src_settings.cpp    Sat Dec 17 14:24:37 2016
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_settings.cpp,v 1.1 2016/12/17 14:24:37 joerg Exp $
+
+--- src/settings.cpp.orig      2016-12-15 14:21:35.471903115 +0000
++++ src/settings.cpp
+@@ -166,7 +166,7 @@ bool MFDN_LoadSettings(const char *based
+ 
+  char linebuf[1024];
+ 
+- while(fgets(linebuf, 1024, fp) > 0)
++ while(fgets(linebuf, 1024, fp))
+  {
+   char *spacepos = strchr(linebuf, ' ');
+   md5_context md5;



Home | Main Index | Thread Index | Old Index