From 860c2fb9e7ac2e43a434d11b7808de61d6f2a9a2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 6 Oct 2020 00:41:58 +0200 Subject: Cleanups --- src/dsp1.c | 2 ++ src/memmap.c | 5 +---- src/sdd1.c | 5 +---- src/snapshot.c | 8 +++++++- src/snapshot.h | 1 - src/snes9x.h | 1 - src/spc700.c | 1 + 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 #include #include -#ifdef __linux -//#include -#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 #include "snes9x.h" #include "memmap.h" #include "ppu.h" #include "sdd1.h" #include "display.h" -#ifdef __linux -//#include -#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 +#ifdef _WIN32 +#include +#else #include +#endif + +#if defined(__unix) || defined(__linux) || defined(__sun) || defined(__DJGPP) #include #include #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 #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 #include #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 #include "snes9x.h" #include "memmap.h" #include "display.h" -- cgit v1.2.3