pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/libretro-mednafen-pce-fast



Module Name:    pkgsrc
Committed By:   joerg
Date:           Wed Feb  8 00:02:18 UTC 2017

Modified Files:
        pkgsrc/emulators/libretro-mednafen-pce-fast: distinfo
Added Files:
        pkgsrc/emulators/libretro-mednafen-pce-fast/patches:
            patch-mednafen_mempatcher.cpp

Log Message:
Don't order pointers with zero.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/emulators/libretro-mednafen-pce-fast/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/libretro-mednafen-pce-fast/patches/patch-mednafen_mempatcher.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/libretro-mednafen-pce-fast/distinfo
diff -u pkgsrc/emulators/libretro-mednafen-pce-fast/distinfo:1.2 pkgsrc/emulators/libretro-mednafen-pce-fast/distinfo:1.3
--- pkgsrc/emulators/libretro-mednafen-pce-fast/distinfo:1.2    Tue Nov  3 20:30:59 2015
+++ pkgsrc/emulators/libretro-mednafen-pce-fast/distinfo        Wed Feb  8 00:02:18 2017
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2015/11/03 20:30:59 agc Exp $
+$NetBSD: distinfo,v 1.3 2017/02/08 00:02:18 joerg Exp $
 
 SHA1 (mednafen-pce-fast-libretro-20150210.zip) = 4f85536b831f884169a7f3773aafea6722ebb744
 RMD160 (mednafen-pce-fast-libretro-20150210.zip) = c6a55ca95c413637a6ffe2db6f454285bb02ee6f
 SHA512 (mednafen-pce-fast-libretro-20150210.zip) = 876e06320cacb2286942aa11e9ea6b4e5d6140bf863e21a61169cc093d1c0495b929145535234e4ab61c2e7162617be9ffc426e2693cefcb8a1233ad339b67ca
 Size (mednafen-pce-fast-libretro-20150210.zip) = 477795 bytes
+SHA1 (patch-mednafen_mempatcher.cpp) = b0832f1f10e78ad28a852a56540af575a824eeb2

Added files:

Index: pkgsrc/emulators/libretro-mednafen-pce-fast/patches/patch-mednafen_mempatcher.cpp
diff -u /dev/null pkgsrc/emulators/libretro-mednafen-pce-fast/patches/patch-mednafen_mempatcher.cpp:1.1
--- /dev/null   Wed Feb  8 00:02:18 2017
+++ pkgsrc/emulators/libretro-mednafen-pce-fast/patches/patch-mednafen_mempatcher.cpp   Wed Feb  8 00:02:18 2017
@@ -0,0 +1,33 @@
+$NetBSD: patch-mednafen_mempatcher.cpp,v 1.1 2017/02/08 00:02:18 joerg Exp $
+
+Pointers are not relative to 0.
+
+--- mednafen/mempatcher.cpp.orig       2017-01-08 19:45:01.356354564 +0000
++++ mednafen/mempatcher.cpp
+@@ -196,7 +196,7 @@ static bool SeekToOurSection(void *fp_pt
+    FILE *fp = (FILE*)fp_ptr;
+    char buf[2048];
+ 
+-   while(fgets(buf,2048,fp) > 0)
++   while(fgets(buf,2048,fp))
+    {
+       if(buf[0] == '[')
+       {
+@@ -253,7 +253,7 @@ void MDFN_LoadGameCheats(void *override_
+ 
+  if(SeekToOurSection(fp))
+  {
+-  while(fgets(linebuf,2048,fp) > 0)
++  while(fgets(linebuf,2048,fp))
+   { 
+    char namebuf[2048];
+    char *tbuf=linebuf;
+@@ -395,7 +395,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)
+     {



Home | Main Index | Thread Index | Old Index