mirror of
https://github.com/dborth/vbagx.git
synced 2024-11-22 18:49:18 +01:00
update includes to match new structure
This commit is contained in:
parent
19ecf65f28
commit
96c0a729bd
@ -18,7 +18,8 @@ include $(DEVKITPPC)/gamecube_rules
|
||||
TARGET := vbagx_gc
|
||||
TARGETDIR := executables
|
||||
BUILD := build_gc
|
||||
SOURCES := source/vba source/vba/agb source/vba/dmg source/vba/dmg/gb_apu \
|
||||
SOURCES := source/vba source/vba/apu source/vba/common \
|
||||
source/vba/gb source/vba/gba \
|
||||
source/ngc source/sz source/unzip
|
||||
INCLUDES := source/vba source/ngc source/unzip
|
||||
|
||||
@ -103,7 +104,6 @@ $(BUILD):
|
||||
@[ -d $@ ] || mkdir -p $@
|
||||
@[ -d $(TARGETDIR) ] || mkdir -p $(TARGETDIR)
|
||||
@make --no-print-directory -C $(BUILD) -f $(CURDIR)/Makefile.gc
|
||||
@rm -fr $(OUTPUT).elf
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
clean:
|
||||
|
@ -18,7 +18,8 @@ include $(DEVKITPPC)/wii_rules
|
||||
TARGET := vbagx_wii
|
||||
TARGETDIR := executables
|
||||
BUILD := build_wii
|
||||
SOURCES := source/vba source/vba/agb source/vba/dmg source/vba/dmg/gb_apu \
|
||||
SOURCES := source/vba source/vba/apu source/vba/common \
|
||||
source/vba/gb source/vba/gba \
|
||||
source/ngc source/sz source/unzip
|
||||
INCLUDES := source/vba source/ngc source/unzip
|
||||
|
||||
|
@ -30,15 +30,15 @@ extern "C" {
|
||||
#include "System.h"
|
||||
#include "NLS.h"
|
||||
#include "Util.h"
|
||||
#include "Flash.h"
|
||||
#include "agb/GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "RTC.h"
|
||||
#include "Port.h"
|
||||
#include "gba/Flash.h"
|
||||
#include "gba/GBA.h"
|
||||
#include "gba/Globals.h"
|
||||
#include "gba/RTC.h"
|
||||
#include "common/Port.h"
|
||||
#include "unzip.h"
|
||||
|
||||
extern "C" {
|
||||
#include "memgzio.h"
|
||||
#include "common/memgzio.h"
|
||||
}
|
||||
|
||||
#ifndef _MSC_VER
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include <string.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "System.h"
|
||||
#include "../System.h"
|
||||
#include "memfile.h"
|
||||
|
||||
/*
|
||||
|
@ -14,7 +14,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include "memgzio.h"
|
||||
|
||||
/*struct internal_state {int dummy;};*/ /* for buggy compilers */
|
||||
|
@ -11,9 +11,22 @@
|
||||
#ifndef HAVE_ZUTIL_H
|
||||
#include "../win32/include/zlib/zutil.h"
|
||||
#else
|
||||
#include <zutil.h>
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
#ifndef local
|
||||
# define local static
|
||||
#endif
|
||||
|
||||
#if MAX_MEM_LEVEL >= 8
|
||||
# define DEF_MEM_LEVEL 8
|
||||
#else
|
||||
# define DEF_MEM_LEVEL MAX_MEM_LEVEL
|
||||
#endif
|
||||
|
||||
#define OS_CODE 0x03 /* assume Unix */
|
||||
#define zmemcpy memcpy
|
||||
|
||||
gzFile ZEXPORT memgzopen(char *memory, int, const char *);
|
||||
int ZEXPORT memgzread(gzFile, voidp, unsigned);
|
||||
int ZEXPORT memgzwrite(gzFile, const voidp, unsigned);
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "../agb/GBA.h"
|
||||
#include "../gba/GBA.h"
|
||||
#include "gbGlobals.h"
|
||||
#include "gbSGB.h"
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "../agb/GBA.h"
|
||||
#include "../gba/GBA.h"
|
||||
|
||||
u8 *gbMemoryMap[16];
|
||||
|
||||
|
@ -16,8 +16,8 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "../agb/GBA.h"
|
||||
#include "../Port.h"
|
||||
#include "../gba/GBA.h"
|
||||
#include "../common/Port.h"
|
||||
#include "gbGlobals.h"
|
||||
#include "gbMemory.h"
|
||||
#include "gb.h"
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "../agb/GBA.h"
|
||||
#include "../gba/GBA.h"
|
||||
|
||||
u8 gbPrinterStatus = 0;
|
||||
int gbPrinterState = 0;
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "../System.h"
|
||||
#include "../Port.h"
|
||||
#include "../common/Port.h"
|
||||
#include "../Util.h"
|
||||
#include "gb.h"
|
||||
#include "gbGlobals.h"
|
||||
|
@ -20,13 +20,13 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "../Sound.h"
|
||||
#include "../gba/Sound.h"
|
||||
#include "../Util.h"
|
||||
#include "gbGlobals.h"
|
||||
#include "gbSound.h"
|
||||
|
||||
#include "gb_apu/Gb_Apu.h"
|
||||
#include "gb_apu/Effects_Buffer.h"
|
||||
#include "../apu/Gb_Apu.h"
|
||||
#include "../apu/Effects_Buffer.h"
|
||||
|
||||
extern int gbHardware;
|
||||
|
||||
|
@ -20,12 +20,12 @@
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "agb/GBAinline.h"
|
||||
#include "GBA.h"
|
||||
#include "GBAinline.h"
|
||||
#include "Cheats.h"
|
||||
#include "Globals.h"
|
||||
#include "NLS.h"
|
||||
#include "Util.h"
|
||||
#include "../NLS.h"
|
||||
#include "../Util.h"
|
||||
|
||||
/**
|
||||
* Gameshark code types: (based on AR v1.0)
|
||||
|
@ -17,9 +17,9 @@
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include <string.h>
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "EEprom.h"
|
||||
#include "Util.h"
|
||||
#include "../Util.h"
|
||||
|
||||
extern int cpuDmaCount;
|
||||
|
||||
|
@ -18,11 +18,11 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "Flash.h"
|
||||
#include "Sram.h"
|
||||
#include "Util.h"
|
||||
#include "../Util.h"
|
||||
|
||||
#define FLASH_READ_ARRAY 0
|
||||
#define FLASH_CMD_1 1
|
||||
|
@ -25,17 +25,17 @@
|
||||
#include "GBA.h"
|
||||
#include "GBAcpu.h"
|
||||
#include "GBAinline.h"
|
||||
#include "../Globals.h"
|
||||
#include "../EEprom.h"
|
||||
#include "../Flash.h"
|
||||
#include "../Sound.h"
|
||||
#include "../Sram.h"
|
||||
#include "../bios.h"
|
||||
#include "../Cheats.h"
|
||||
#include "Globals.h"
|
||||
#include "EEprom.h"
|
||||
#include "Flash.h"
|
||||
#include "Sound.h"
|
||||
#include "Sram.h"
|
||||
#include "bios.h"
|
||||
#include "Cheats.h"
|
||||
#include "../NLS.h"
|
||||
#include "../elf.h"
|
||||
#include "elf.h"
|
||||
#include "../Util.h"
|
||||
#include "../Port.h"
|
||||
#include "../common/Port.h"
|
||||
#include "../System.h"
|
||||
#include "agbprint.h"
|
||||
#ifdef PROFILING
|
||||
|
@ -27,17 +27,17 @@
|
||||
#include "GBA.h"
|
||||
#include "GBAcpu.h"
|
||||
#include "GBAinline.h"
|
||||
#include "../Globals.h"
|
||||
#include "../EEprom.h"
|
||||
#include "../Flash.h"
|
||||
#include "../Sound.h"
|
||||
#include "../Sram.h"
|
||||
#include "../bios.h"
|
||||
#include "../Cheats.h"
|
||||
#include "Globals.h"
|
||||
#include "EEprom.h"
|
||||
#include "Flash.h"
|
||||
#include "Sound.h"
|
||||
#include "Sram.h"
|
||||
#include "bios.h"
|
||||
#include "Cheats.h"
|
||||
#include "../NLS.h"
|
||||
#include "../elf.h"
|
||||
#include "elf.h"
|
||||
#include "../Util.h"
|
||||
#include "../Port.h"
|
||||
#include "../common/Port.h"
|
||||
#include "../System.h"
|
||||
#include "agbprint.h"
|
||||
#ifdef PROFILING
|
||||
|
@ -23,18 +23,18 @@
|
||||
#include "GBA.h"
|
||||
#include "GBAcpu.h"
|
||||
#include "GBAinline.h"
|
||||
#include "../Globals.h"
|
||||
#include "Globals.h"
|
||||
#include "GBAGfx.h"
|
||||
#include "../EEprom.h"
|
||||
#include "../Flash.h"
|
||||
#include "../Sound.h"
|
||||
#include "../Sram.h"
|
||||
#include "../bios.h"
|
||||
#include "../Cheats.h"
|
||||
#include "EEprom.h"
|
||||
#include "Flash.h"
|
||||
#include "Sound.h"
|
||||
#include "Sram.h"
|
||||
#include "bios.h"
|
||||
#include "Cheats.h"
|
||||
#include "../NLS.h"
|
||||
#include "../elf.h"
|
||||
#include "elf.h"
|
||||
#include "../Util.h"
|
||||
#include "../Port.h"
|
||||
#include "../common/Port.h"
|
||||
#include "../System.h"
|
||||
#include "agbprint.h"
|
||||
#ifdef PROFILING
|
||||
|
@ -152,9 +152,9 @@ extern struct EmulatedSystem GBASystem;
|
||||
#define R14_FIQ 43
|
||||
#define SPSR_FIQ 44
|
||||
|
||||
#include "../Cheats.h"
|
||||
#include "../Globals.h"
|
||||
#include "../EEprom.h"
|
||||
#include "../Flash.h"
|
||||
#include "Cheats.h"
|
||||
#include "Globals.h"
|
||||
#include "EEprom.h"
|
||||
#include "Flash.h"
|
||||
|
||||
#endif //VBA_GBA_H
|
||||
|
@ -22,9 +22,9 @@
|
||||
#define VBA_GFX_H
|
||||
|
||||
#include "GBA.h"
|
||||
#include "../Globals.h"
|
||||
#include "Globals.h"
|
||||
|
||||
#include "../Port.h"
|
||||
#include "../common/Port.h"
|
||||
|
||||
//#define SPRITE_DEBUG
|
||||
|
||||
|
@ -21,9 +21,9 @@
|
||||
#define VBA_GBAinline_H
|
||||
|
||||
#include "../System.h"
|
||||
#include "../Port.h"
|
||||
#include "../RTC.h"
|
||||
#include "../Sound.h"
|
||||
#include "../common/Port.h"
|
||||
#include "RTC.h"
|
||||
#include "Sound.h"
|
||||
#include "agbprint.h"
|
||||
#include "vmmem.h" // Nintendo GC Virtual Memory
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
|
||||
#ifdef BKPT_SUPPORT
|
||||
int oldreg[17];
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef VBA_GLOBALS_H
|
||||
#define VBA_GLOBALS_H
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
|
||||
#define VERBOSE_SWI 1
|
||||
#define VERBOSE_UNALIGNED_MEMORY 2
|
||||
|
@ -16,9 +16,9 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "agb/GBAGfx.h"
|
||||
#include "GBAGfx.h"
|
||||
|
||||
void mode0RenderLine()
|
||||
{
|
||||
|
@ -16,9 +16,9 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "agb/GBAGfx.h"
|
||||
#include "GBAGfx.h"
|
||||
|
||||
void mode1RenderLine()
|
||||
{
|
||||
|
@ -16,9 +16,9 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "agb/GBAGfx.h"
|
||||
#include "GBAGfx.h"
|
||||
|
||||
void mode2RenderLine()
|
||||
{
|
||||
|
@ -16,9 +16,9 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "agb/GBAGfx.h"
|
||||
#include "GBAGfx.h"
|
||||
|
||||
void mode3RenderLine()
|
||||
{
|
||||
|
@ -16,8 +16,8 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "agb/GBAGfx.h"
|
||||
#include "GBA.h"
|
||||
#include "GBAGfx.h"
|
||||
#include "Globals.h"
|
||||
|
||||
void mode4RenderLine()
|
||||
|
@ -16,9 +16,9 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "agb/GBAGfx.h"
|
||||
#include "GBAGfx.h"
|
||||
|
||||
void mode5RenderLine()
|
||||
{
|
||||
|
@ -16,12 +16,12 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "System.h"
|
||||
#include "agb/GBA.h"
|
||||
#include "../System.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "Port.h"
|
||||
#include "Util.h"
|
||||
#include "NLS.h"
|
||||
#include "../common/Port.h"
|
||||
#include "../Util.h"
|
||||
#include "../NLS.h"
|
||||
#include "vmmem.h"
|
||||
|
||||
#include <time.h>
|
||||
|
@ -23,13 +23,13 @@
|
||||
|
||||
#include "Sound.h"
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "Util.h"
|
||||
#include "Port.h"
|
||||
#include "../Util.h"
|
||||
#include "../common/Port.h"
|
||||
|
||||
#include "dmg/gb_apu/Gb_Apu.h"
|
||||
#include "dmg/gb_apu/Multi_Buffer.h"
|
||||
#include "../apu/Gb_Apu.h"
|
||||
#include "../apu/Multi_Buffer.h"
|
||||
|
||||
#define NR10 0x60
|
||||
#define NR11 0x62
|
||||
|
@ -16,7 +16,7 @@
|
||||
// along with this program; if not, write to the Free Software Foundation,
|
||||
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "Flash.h"
|
||||
#include "Sram.h"
|
||||
|
@ -21,8 +21,8 @@
|
||||
|
||||
#include "GBA.h"
|
||||
#include "Globals.h"
|
||||
#include "Port.h"
|
||||
#include "System.h"
|
||||
#include "../common/Port.h"
|
||||
#include "../System.h"
|
||||
|
||||
#define debuggerWriteHalfWord(addr, value) \
|
||||
WRITE16LE((u16*)&map[(addr)>>24].address[(addr) & map[(addr)>>24].mask], (value))
|
||||
|
@ -21,9 +21,9 @@
|
||||
/************************************************************************/
|
||||
#include <stdio.h>
|
||||
|
||||
#include "System.h"
|
||||
#include "Port.h"
|
||||
#include "agb/GBA.h"
|
||||
#include "../System.h"
|
||||
#include "../common/Port.h"
|
||||
#include "GBA.h"
|
||||
#include "armdis.h"
|
||||
#include "elf.h"
|
||||
|
||||
|
@ -20,9 +20,9 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "GBA.h"
|
||||
#include "bios.h"
|
||||
#include "agb/GBAinline.h"
|
||||
#include "GBAinline.h"
|
||||
#include "Globals.h"
|
||||
|
||||
s16 sineTable[256] = {
|
||||
|
@ -20,10 +20,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "agb/GBA.h"
|
||||
#include "Port.h"
|
||||
#include "GBA.h"
|
||||
#include "../common/Port.h"
|
||||
#include "elf.h"
|
||||
#include "NLS.h"
|
||||
#include "../NLS.h"
|
||||
|
||||
#define elfReadMemory(addr) \
|
||||
READ32LE((&map[(addr)>>24].address[(addr) & map[(addr)>>24].mask]))
|
||||
|
Loading…
Reference in New Issue
Block a user