Fix build?

This commit is contained in:
Robin Jones 2023-03-13 01:49:57 +00:00
parent 688bec6ba2
commit 1360273f4d
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 {