summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2020-10-06 00:41:58 +0200
committertwinaphex2020-10-06 00:41:58 +0200
commit860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2 (patch)
tree4d6b29549d06f5cac6c05895f3ca2df0e2fe3edc
parent21647005d1b2729a70fb41c36c1a7d2d19f0a24e (diff)
downloadsnes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.tar.gz
snes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.tar.bz2
snes9x2002-860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2.zip
Cleanups
-rw-r--r--src/dsp1.c2
-rw-r--r--src/memmap.c5
-rw-r--r--src/sdd1.c5
-rw-r--r--src/snapshot.c8
-rw-r--r--src/snapshot.h1
-rw-r--r--src/snes9x.h1
-rw-r--r--src/spc700.c1
7 files changed, 12 insertions, 11 deletions
diff --git a/src/dsp1.c b/src/dsp1.c
index e3910bb..db58057 100644
--- a/src/dsp1.c
+++ b/src/dsp1.c
@@ -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"
diff --git a/src/sdd1.c b/src/sdd1.c
index c6e7f57..8a1f4ff 100644
--- a/src/sdd1.c
+++ b/src/sdd1.c
@@ -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"