diff options
Diffstat (limited to 'emulators/fceux/files')
-rw-r--r-- | emulators/fceux/files/patch-fceux-server_server.cpp | 11 | ||||
-rw-r--r-- | emulators/fceux/files/patch-src_boards_mapinc.h | 8 | ||||
-rw-r--r-- | emulators/fceux/files/patch-src_cheat.cpp | 11 |
3 files changed, 30 insertions, 0 deletions
diff --git a/emulators/fceux/files/patch-fceux-server_server.cpp b/emulators/fceux/files/patch-fceux-server_server.cpp new file mode 100644 index 000000000000..843c76927a89 --- /dev/null +++ b/emulators/fceux/files/patch-fceux-server_server.cpp @@ -0,0 +1,11 @@ +--- fceux-server/server.cpp.orig 2017-02-26 13:33:11 UTC ++++ fceux-server/server.cpp +@@ -114,7 +114,7 @@ int LoadConfigFile(char *fn) + if(fp=fopen(fn,"rb")) + { + char buf[256]; +- while(fgets(buf, 256, fp) > 0) ++ while(fgets(buf, 256, fp)) + { + if(!strncasecmp(buf,"maxclients",strlen("maxclients"))) + sscanf(buf,"%*s %d",&ServerConfig.MaxClients); diff --git a/emulators/fceux/files/patch-src_boards_mapinc.h b/emulators/fceux/files/patch-src_boards_mapinc.h new file mode 100644 index 000000000000..dc59f0c4b9fb --- /dev/null +++ b/emulators/fceux/files/patch-src_boards_mapinc.h @@ -0,0 +1,8 @@ +--- src/boards/mapinc.h.orig 2017-02-26 13:37:11 UTC ++++ src/boards/mapinc.h +@@ -9,4 +9,5 @@ + #include "../cheat.h" + #include "../unif.h" + #include <stdio.h> ++#include <stdlib.h> + #include <string.h> diff --git a/emulators/fceux/files/patch-src_cheat.cpp b/emulators/fceux/files/patch-src_cheat.cpp new file mode 100644 index 000000000000..e9e5393a17ae --- /dev/null +++ b/emulators/fceux/files/patch-src_cheat.cpp @@ -0,0 +1,11 @@ +--- src/cheat.cpp.orig 2017-02-26 13:33:11 UTC ++++ src/cheat.cpp +@@ -216,7 +216,7 @@ void FCEU_LoadGameCheats(FILE *override) + } + + FCEU_DispMessage("Cheats file loaded.",0); //Tells user a cheats file was loaded. +- while(fgets(linebuf,2048,fp)>0) ++ while(fgets(linebuf,2048,fp)) + { + char *tbuf=linebuf; + int doc=0; |