Fix build

This commit is contained in:
twinaphex 2012-10-14 17:10:15 +02:00
parent 72c55e6f95
commit 9cd0fb3cce
3 changed files with 6 additions and 4 deletions

View File

@ -128,7 +128,7 @@ LIBRETRO_SRC := $(GENPLUS_SRC_DIR)/genesis.c \
$(GENPLUS_SRC_DIR)/cart_hw/svp/svp.c \ $(GENPLUS_SRC_DIR)/cart_hw/svp/svp.c \
$(GENPLUS_SRC_DIR)/ntsc/md_ntsc.c \ $(GENPLUS_SRC_DIR)/ntsc/md_ntsc.c \
$(GENPLUS_SRC_DIR)/ntsc/sms_ntsc.c \ $(GENPLUS_SRC_DIR)/ntsc/sms_ntsc.c \
= $(GENPLUS_SRC_DIR)/sound/eq.c \ $(GENPLUS_SRC_DIR)/sound/eq.c \
$(GENPLUS_SRC_DIR)/sound/sound.c \ $(GENPLUS_SRC_DIR)/sound/sound.c \
$(GENPLUS_SRC_DIR)/sound/ym2612.c \ $(GENPLUS_SRC_DIR)/sound/ym2612.c \
$(GENPLUS_SRC_DIR)/sound/ym2413.c \ $(GENPLUS_SRC_DIR)/sound/ym2413.c \

View File

@ -27,6 +27,8 @@ static int vwidth;
static int vheight; static int vheight;
static bool failed_init; static bool failed_init;
char rom_filename[256];
unsigned retro_api_version(void) { return RETRO_API_VERSION; } unsigned retro_api_version(void) { return RETRO_API_VERSION; }
static retro_video_refresh_t video_cb; static retro_video_refresh_t video_cb;
@ -698,7 +700,7 @@ static struct retro_system_av_info g_av_info;
void retro_get_system_info(struct retro_system_info *info) void retro_get_system_info(struct retro_system_info *info)
{ {
info->library_name = "Genesis Plus GX"; info->library_name = "Genesis Plus GX";
info->library_version = "v1.7.0"; info->library_version = "v1.7.1";
info->valid_extensions = "md|smd|bin|cue|gen|zip|MD|SMD|bin|iso|ISO|CUE|GEN|ZIP|sms|SMS|gg|GG|sg|SG"; info->valid_extensions = "md|smd|bin|cue|gen|zip|MD|SMD|bin|iso|ISO|CUE|GEN|ZIP|sms|SMS|gg|GG|sg|SG";
info->block_extract = false; info->block_extract = false;
info->need_fullpath = true; info->need_fullpath = true;
@ -948,7 +950,6 @@ void retro_init(void)
void retro_deinit(void) void retro_deinit(void)
{ {
system_shutdown();
#if defined(USE_NTSC) #if defined(USE_NTSC)
free(md_ntsc); free(md_ntsc);
free(sms_ntsc); free(sms_ntsc);

View File

@ -87,6 +87,7 @@ typedef struct
float bgm_volume; float bgm_volume;
float sfx_volume; float sfx_volume;
char lastdir[4][2][MAXPATHLEN]; char lastdir[4][2][MAXPATHLEN];
uint8 gg_extra;
} t_config; } t_config;
/* Global data */ /* Global data */
@ -106,7 +107,7 @@ extern char MS_BIOS_JP[256];
extern int16 soundbuffer[3068]; extern int16 soundbuffer[3068];
#define VERSION "Genesis Plus GX 1.7.0 (libretro)" #define VERSION "Genesis Plus GX 1.7.1 (libretro)"
void osd_input_update(void); void osd_input_update(void);
int load_archive(char *filename, unsigned char *buffer, int maxsize, char *extension); int load_archive(char *filename, unsigned char *buffer, int maxsize, char *extension);