From 1360273f4d084d64c4712f1b0351c9371b443a7d Mon Sep 17 00:00:00 2001 From: Robin Jones Date: Mon, 13 Mar 2023 01:49:57 +0000 Subject: [PATCH] Fix build? --- .github/workflows/build.yml | 2 +- src/menu/menu_main.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dc17021f..afe43ec9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -46,7 +46,7 @@ jobs: mkdir build mkdir output # TODO: split this to use params for each flashcart type. - make menu + make - name: Upload artifact uses: actions/upload-artifact@v3 diff --git a/src/menu/menu_main.c b/src/menu/menu_main.c index 15dc20e6..0b0da05d 100644 --- a/src/menu/menu_main.c +++ b/src/menu/menu_main.c @@ -10,6 +10,7 @@ #include "menu_main.h" #include "menu_info.h" #include "menu_fileinfo.h" +#include "rom_database.h" static int scroll_menu_position = 0; static int items_in_dir = 0; @@ -126,6 +127,8 @@ void menu_main_init (settings_t *settings) { printf("%s\n", current_filename); if (str_endswith(current_filename, ".z64") || str_endswith(current_filename, ".n64") || str_endswith(current_filename, ".v64")) { assertf(flashcart_load_rom(current_filename) == FLASHCART_OK, "ROM load error"); + // FIXME: we now need the header ID and CRC HI... + //assertf(flashcart_load_save("current_filename.sav", rom_db_match_save_type(id, crc), false) == FLASHCART_OK, "ROM load save error"); break; //required! } else {