Code cleanup and fix include references

- Fixed all broken include references
- Cleanup memmap.cpp code by removing UNZIP and JMA SUPPORT code which are not used
- Cleanup reader.cpp code by removing the UNZIP SUPPORT reference to unzip.h
This commit is contained in:
Etienne Haarsma 2018-08-18 12:04:35 +02:00
parent e41f513ee3
commit 70c7e883d7
12 changed files with 17 additions and 28 deletions

View File

@ -9,8 +9,8 @@
***************************************************************************/ ***************************************************************************/
#include "port.h" #include "snes9x/port.h"
#include "cheats.h" #include "snes9x/cheats.h"
#include "snes9xgx.h" #include "snes9xgx.h"
#include "fileop.h" #include "fileop.h"

View File

@ -22,7 +22,7 @@
#include "filter.h" #include "filter.h"
#include "video.h" #include "video.h"
#include "snes9xgx.h" #include "snes9xgx.h"
#include "memmap.h" #include "snes9x/memmap.h"
#include "menu.h" #include "menu.h"

View File

@ -18,7 +18,7 @@
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include "snes9x.h" #include "snes9x/snes9x.h"
enum RenderFilter{ enum RenderFilter{
FILTER_NONE = 0, FILTER_NONE = 0,

View File

@ -9,7 +9,7 @@
***************************************************************************/ ***************************************************************************/
#include "gui.h" #include "gui.h"
#include "filebrowser.h" #include "../filebrowser.h"
/** /**
* Constructor for the GuiFileBrowser class. * Constructor for the GuiFileBrowser class.

View File

@ -9,7 +9,7 @@
***************************************************************************/ ***************************************************************************/
#include "gui.h" #include "gui.h"
#include "filebrowser.h" #include "../filebrowser.h"
/** /**
* Constructor for the GuiSaveBrowser class. * Constructor for the GuiSaveBrowser class.

View File

@ -10,9 +10,9 @@
#include "blargg_endian.h" #include "blargg_endian.h"
#ifdef DEBUGGER #ifdef DEBUGGER
#include "snes9x.h" #include "../snes9x.h"
#include "display.h" #include "../display.h"
#include "debug.h" #include "../debug.h"
#endif #endif
struct SNES_SPC { struct SNES_SPC {

View File

@ -180,11 +180,11 @@
#include <math.h> #include <math.h>
#include "snes9x.h" #include "../snes9x.h"
#include "apu.h" #include "apu.h"
#include "msu1.h" #include "../msu1.h"
#include "snapshot.h" #include "../snapshot.h"
#include "display.h" #include "../display.h"
#include "linear_resampler.h" #include "linear_resampler.h"
#include "hermite_resampler.h" #include "hermite_resampler.h"

View File

@ -179,7 +179,7 @@
#ifndef _APU_H_ #ifndef _APU_H_
#define _APU_H_ #define _APU_H_
#include "snes9x.h" #include "../snes9x.h"
#include "SNES_SPC.h" #include "SNES_SPC.h"
typedef void (*apu_callback) (void *); typedef void (*apu_callback) (void *);

View File

@ -4,7 +4,7 @@
#define __LINEAR_RESAMPLER_H #define __LINEAR_RESAMPLER_H
#include "resampler.h" #include "resampler.h"
#include "snes9x.h" #include "../snes9x.h"
static const int f_prec = 15; static const int f_prec = 15;
static const uint32 f__one = (1 << f_prec); static const uint32 f__one = (1 << f_prec);

View File

@ -183,14 +183,6 @@
#include <numeric> #include <numeric>
#include <assert.h> #include <assert.h>
#ifdef UNZIP_SUPPORT
#include "unzip/unzip.h"
#endif
#ifdef JMA_SUPPORT
#include "jma/s9x-jma.h"
#endif
#include "snes9x.h" #include "snes9x.h"
#include "memmap.h" #include "memmap.h"
#include "apu/apu.h" #include "apu/apu.h"

View File

@ -178,9 +178,6 @@
// Abstract the details of reading from zip files versus FILE *'s. // Abstract the details of reading from zip files versus FILE *'s.
#include <string> #include <string>
#ifdef UNZIP_SUPPORT
#include "unzip.h"
#endif
#include "snes9x.h" #include "snes9x.h"
#include "reader.h" #include "reader.h"

View File

@ -5,8 +5,8 @@
#include <unistd.h> #include <unistd.h>
#include "gettext.h" #include "gettext.h"
#include "filelist.h" #include "../filelist.h"
#include "snes9xgx.h" #include "../snes9xgx.h"
typedef struct _MSG typedef struct _MSG
{ {