diff --git a/core/loadrom.c b/core/loadrom.c index e8d6aba..553f75b 100644 --- a/core/loadrom.c +++ b/core/loadrom.c @@ -553,7 +553,7 @@ int load_rom(char *filename) /* auto-detect CD image file */ //No CD support - size = 0;// cdd_load(filename, (char *)(cart.rom)); + size = cdd_load(filename, (char *)(cart.rom)); if (size < 0) { /* error opening file */ diff --git a/libretro/libretro.c b/libretro/libretro.c index 6b4b9d3..a4f65f3 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -113,7 +113,6 @@ static uint8_t temp[0x10000]; static int16 soundbuffer[3068]; static uint16_t bitmap_data_[720 * 576]; -static char g_rom_path[256]; static char g_rom_dir[256]; static char g_rom_name[256]; static char *save_dir; @@ -167,12 +166,6 @@ void error(char * fmt, ...) int load_archive(char *filename, unsigned char *buffer, int maxsize, char *extension) { - /* If trying to read from game rom, use frontend callback */ - if (strcmp(filename, g_rom_path) == 0) - { - return retro_game_read_cb(buffer, maxsize); - } - int size, left; /* Open file */ @@ -2021,7 +2014,6 @@ bool retro_load_game(const struct retro_game_info *info) init_bitmap(); config_default(); - strncpy(g_rom_path, info->path, sizeof(g_rom_path)); extract_directory(g_rom_dir, info->path, sizeof(g_rom_dir)); extract_name(g_rom_name, info->path, sizeof(g_rom_name));