pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libretro-mednafen-pce-fast: Add patches
Module Name: pkgsrc-wip
Committed By: Nia Alarie <nia.alarie%gmail.com@localhost>
Pushed By: nee
Date: Tue Jun 6 11:44:53 2017 +0100
Changeset: ad6a7096c143e04d983bf56cad846bf2bf86c4d9
Added Files:
libretro-mednafen-pce-fast/patches/patch-mednafen_mempatcher.cpp
Log Message:
libretro-mednafen-pce-fast: Add patches
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ad6a7096c143e04d983bf56cad846bf2bf86c4d9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
.../patches/patch-mednafen_mempatcher.cpp | 33 ++++++++++++++++++++++
1 file changed, 33 insertions(+)
diffs:
diff --git a/libretro-mednafen-pce-fast/patches/patch-mednafen_mempatcher.cpp b/libretro-mednafen-pce-fast/patches/patch-mednafen_mempatcher.cpp
new file mode 100644
index 0000000000..9e3e5b47c6
--- /dev/null
+++ b/libretro-mednafen-pce-fast/patches/patch-mednafen_mempatcher.cpp
@@ -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