mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-11-22 10:39:20 +01:00
Fix build?
This commit is contained in:
parent
688bec6ba2
commit
1360273f4d
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -46,7 +46,7 @@ jobs:
|
|||||||
mkdir build
|
mkdir build
|
||||||
mkdir output
|
mkdir output
|
||||||
# TODO: split this to use params for each flashcart type.
|
# TODO: split this to use params for each flashcart type.
|
||||||
make menu
|
make
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
#include "menu_main.h"
|
#include "menu_main.h"
|
||||||
#include "menu_info.h"
|
#include "menu_info.h"
|
||||||
#include "menu_fileinfo.h"
|
#include "menu_fileinfo.h"
|
||||||
|
#include "rom_database.h"
|
||||||
|
|
||||||
static int scroll_menu_position = 0;
|
static int scroll_menu_position = 0;
|
||||||
static int items_in_dir = 0;
|
static int items_in_dir = 0;
|
||||||
@ -126,6 +127,8 @@ void menu_main_init (settings_t *settings) {
|
|||||||
printf("%s\n", current_filename);
|
printf("%s\n", current_filename);
|
||||||
if (str_endswith(current_filename, ".z64") || str_endswith(current_filename, ".n64") || str_endswith(current_filename, ".v64")) {
|
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");
|
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!
|
break; //required!
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user