(GBA) Patches

This commit is contained in:
twinaphex 2012-11-27 04:44:20 +01:00
parent 697735e2ff
commit 0a00bac258
10 changed files with 12 additions and 11 deletions

View File

@ -146,6 +146,7 @@ else ifeq ($(core), gba)
NEED_BPP = 32 NEED_BPP = 32
NEED_BLIP = 1 NEED_BLIP = 1
NEED_STEREO_SOUND = 1 NEED_STEREO_SOUND = 1
NEED_CRC32 = 1
CORE_DEFINE := -DWANT_GBA_EMU CORE_DEFINE := -DWANT_GBA_EMU
CORE_DIR := $(MEDNAFEN_DIR)/gba CORE_DIR := $(MEDNAFEN_DIR)/gba

View File

@ -35,13 +35,12 @@
#include "arm.h" #include "arm.h"
#include "thumb.h" #include "thumb.h"
#include <memory.h>
#include <stdarg.h> #include <stdarg.h>
#include <string.h> #include <string.h>
#include <trio/trio.h> #include <trio/trio.h>
#include <errno.h> #include <errno.h>
#include "../../scrc32.cpp" #include "../../scrc32.h"
namespace MDFN_IEN_GBA namespace MDFN_IEN_GBA
{ {

View File

@ -21,7 +21,6 @@
#define VBA_GBA_H #define VBA_GBA_H
#include "../mednafen.h" #include "../mednafen.h"
#include <zlib.h>
namespace MDFN_IEN_GBA namespace MDFN_IEN_GBA
{ {

View File

@ -22,7 +22,6 @@
#include "Port.h" #include "Port.h"
#include <time.h> #include <time.h>
#include <memory.h>
namespace MDFN_IEN_GBA namespace MDFN_IEN_GBA
{ {

View File

@ -21,7 +21,6 @@
#include "Sound.h" #include "Sound.h"
#include "Port.h" #include "Port.h"
#include <memory.h>
#include <math.h> #include <math.h>
#include <blip/Blip_Buffer.h> #include <blip/Blip_Buffer.h>

View File

@ -22,7 +22,6 @@
#include "Globals.h" #include "Globals.h"
#include <math.h> #include <math.h>
#include <memory.h>
namespace MDFN_IEN_GBA namespace MDFN_IEN_GBA
{ {

View File

@ -17,7 +17,6 @@
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "GBA.h" #include "GBA.h"
#include <memory.h>
#include "eeprom.h" #include "eeprom.h"
namespace MDFN_IEN_GBA namespace MDFN_IEN_GBA

View File

@ -21,8 +21,6 @@
#include "flash.h" #include "flash.h"
#include "sram.h" #include "sram.h"
#include <memory.h>
namespace MDFN_IEN_GBA namespace MDFN_IEN_GBA
{ {

View File

@ -27,8 +27,8 @@ bool GBA_Flash_Init(void);
void GBA_Flash_Kill(void); void GBA_Flash_Kill(void);
void GBA_Flash_Reset(void); void GBA_Flash_Reset(void);
extern void flashSaveGame(gzFile gzFile); extern void flashSaveGame(FILE *file);
extern void flashReadGame(gzFile gzFile, int version); extern void flashReadGame(FILE *file, int version);
extern uint8 flashRead(uint32 address); extern uint8 flashRead(uint32 address);
extern void flashWrite(uint32 address, uint8 byte); extern void flashWrite(uint32 address, uint8 byte);
extern uint8 *flashSaveMemory; extern uint8 *flashSaveMemory;

View File

@ -1,6 +1,14 @@
#ifndef _S_CRC32_H #ifndef _S_CRC32_H
#define _S_CRC32_H #define _S_CRC32_H
#ifdef __cplusplus
extern "C" {
#endif
unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len); unsigned long crc32(unsigned long crc, const unsigned char *buf, unsigned int len);
#ifdef __cplusplus
}
#endif
#endif #endif