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 "cheats.h"
#include "snes9x/port.h"
#include "snes9x/cheats.h"
#include "snes9xgx.h"
#include "fileop.h"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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