diff options
author | twinaphex | 2020-10-06 00:41:58 +0200 |
---|---|---|
committer | twinaphex | 2020-10-06 00:41:58 +0200 |
commit | 860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2 (patch) | |
tree | 4d6b29549d06f5cac6c05895f3ca2df0e2fe3edc | |
parent | 21647005d1b2729a70fb41c36c1a7d2d19f0a24e (diff) | |
download | snes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.tar.gz snes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.tar.bz2 snes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.zip |
Cleanups
-rw-r--r-- | src/dsp1.c | 2 | ||||
-rw-r--r-- | src/memmap.c | 5 | ||||
-rw-r--r-- | src/sdd1.c | 5 | ||||
-rw-r--r-- | src/snapshot.c | 8 | ||||
-rw-r--r-- | src/snapshot.h | 1 | ||||
-rw-r--r-- | src/snes9x.h | 1 | ||||
-rw-r--r-- | src/spc700.c | 1 |
7 files changed, 12 insertions, 11 deletions
@@ -882,7 +882,9 @@ void DSP2SetByte(uint8 byte, uint16 address) DSP1.in_count = 2;
break;
default:
+#if 0
printf("Op%02X\n", byte);
+#endif
case 0x0f:
DSP1.in_count = 0;
break;
diff --git a/src/memmap.c b/src/memmap.c index c077f98..83f3b3a 100644 --- a/src/memmap.c +++ b/src/memmap.c @@ -41,13 +41,10 @@ * Super NES and Super Nintendo Entertainment System are trademarks of
* Nintendo Co., Limited and its subsidiary companies.
*/
+#include <stdio.h>
#include <string.h>
#include <ctype.h>
-#ifdef __linux
-//#include <unistd.h>
-#endif
-
#include "snes9x.h"
#include "memmap.h"
#include "cpuexec.h"
@@ -41,16 +41,13 @@ * Super NES and Super Nintendo Entertainment System are trademarks of * Nintendo Co., Limited and its subsidiary companies. */ +#include <stdio.h> #include "snes9x.h" #include "memmap.h" #include "ppu.h" #include "sdd1.h" #include "display.h" -#ifdef __linux -//#include <unistd.h> -#endif - void S9xSetSDD1MemoryMap(uint32 bank, uint32 value) { int c; diff --git a/src/snapshot.c b/src/snapshot.c index a88a462..17c10e5 100644 --- a/src/snapshot.c +++ b/src/snapshot.c @@ -42,8 +42,14 @@ * Nintendo Co., Limited and its subsidiary companies.
*/
-#if defined(__unix) || defined(__linux) || defined(__sun) || defined(__DJGPP)
+#include <stdio.h>
+#ifdef _WIN32
+#include <direct.h>
+#else
#include <unistd.h>
+#endif
+
+#if defined(__unix) || defined(__linux) || defined(__sun) || defined(__DJGPP)
#include <sys/types.h>
#include <sys/stat.h>
#endif
diff --git a/src/snapshot.h b/src/snapshot.h index 649c2a1..5df9e58 100644 --- a/src/snapshot.h +++ b/src/snapshot.h @@ -41,7 +41,6 @@ #ifndef _SNAPSHOT_H_
#define _SNAPSHOT_H_
-#include <stdio.h>
#include "snes9x.h"
#define SNAPSHOT_MAGIC "#!snes9x"
diff --git a/src/snes9x.h b/src/snes9x.h index 424cce8..fbea13f 100644 --- a/src/snes9x.h +++ b/src/snes9x.h @@ -41,7 +41,6 @@ #ifndef _SNES9X_H_
#define _SNES9X_H_
-#include <stdio.h>
#include <stdlib.h>
#include "port.h"
diff --git a/src/spc700.c b/src/spc700.c index 84c5d51..6e1ace6 100644 --- a/src/spc700.c +++ b/src/spc700.c @@ -42,6 +42,7 @@ * Nintendo Co., Limited and its subsidiary companies.
*/
+#include <stdio.h>
#include "snes9x.h"
#include "memmap.h"
#include "display.h"
|