diff --git a/Makefile.libretro b/Makefile.libretro index f10ff25..051d41b 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -128,7 +128,7 @@ LIBRETRO_SRC := $(GENPLUS_SRC_DIR)/genesis.c \ $(GENPLUS_SRC_DIR)/cart_hw/svp/svp.c \ $(GENPLUS_SRC_DIR)/ntsc/md_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/ym2612.c \ $(GENPLUS_SRC_DIR)/sound/ym2413.c \ diff --git a/libretro/libretro.c b/libretro/libretro.c index d6b7494..0eab52e 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -27,6 +27,8 @@ static int vwidth; static int vheight; static bool failed_init; +char rom_filename[256]; + unsigned retro_api_version(void) { return RETRO_API_VERSION; } 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) { 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->block_extract = false; info->need_fullpath = true; @@ -948,7 +950,6 @@ void retro_init(void) void retro_deinit(void) { - system_shutdown(); #if defined(USE_NTSC) free(md_ntsc); free(sms_ntsc); diff --git a/libretro/osd.h b/libretro/osd.h index 95dde44..69eabb4 100644 --- a/libretro/osd.h +++ b/libretro/osd.h @@ -87,6 +87,7 @@ typedef struct float bgm_volume; float sfx_volume; char lastdir[4][2][MAXPATHLEN]; + uint8 gg_extra; } t_config; /* Global data */ @@ -106,7 +107,7 @@ extern char MS_BIOS_JP[256]; 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); int load_archive(char *filename, unsigned char *buffer, int maxsize, char *extension);