From 7703a1eaab10d3bbccb2ce9340f0264b8222ec34 Mon Sep 17 00:00:00 2001 From: Shaun Inman Date: Sat, 4 Mar 2023 08:50:14 -0500 Subject: [PATCH] fixed issue with zipped nes roms unheadered nes roms still don't work, zipped or otherwise --- src/minarch/main.c | 4 ++-- todo.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/minarch/main.c b/src/minarch/main.c index f12d13e..37d35de 100644 --- a/src/minarch/main.c +++ b/src/minarch/main.c @@ -383,7 +383,7 @@ static void Game_open(char* path) { } static void Game_close(void) { if (game.data) free(game.data); - if (game.tmp_path) remove(game.tmp_path); + if (game.tmp_path[0]) remove(game.tmp_path); game.is_open = 0; VIB_setStrength(0); // just in case } @@ -2817,7 +2817,7 @@ void Core_init(void) { void Core_load(void) { // LOG_info("Core_load\n"); struct retro_game_info game_info; - game_info.path = game.path; + game_info.path = game.tmp_path[0]?game.tmp_path:game.path; game_info.data = game.data; game_info.size = game.size; diff --git a/todo.txt b/todo.txt index c360a4f..f1979f7 100644 --- a/todo.txt +++ b/todo.txt @@ -3,7 +3,7 @@ Please see the README.txt in the zip file for installation and update instructions. *base* -- initial hdmi support +- added support for zipped roms - fixed input mapping for cores with different input modes - fixed late loading of configs (was preventing boot logos for certain systems) - fixed flicker at low end of screen brightness ramp