Skip to content

Commit

Permalink
Further re-order
Browse files Browse the repository at this point in the history
(untested)
  • Loading branch information
networkfusion committed Dec 4, 2024
1 parent 256ede1 commit b70729c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/menu/views/load_disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,22 @@ static void draw_progress (float progress) {
static void load (menu_t *menu) {
cart_load_err_t err;

err = cart_load_64dd_ipl_and_disk(menu, draw_progress);
if (err != CART_LOAD_OK) {
menu_show_error(menu, cart_load_convert_error_message(err));
return;
}

if (menu->load.rom_path && load_disk_with_rom) {
// FIXME: if the ROM is not a DD expansion ROM, it will just load the ROM. We need to check and warn!
// something involving: menu->load.rom_info.game_code[0] != 'C' or 'E' or homebrew ...
err = cart_load_n64_rom_and_save(menu, draw_progress);
if (err != CART_LOAD_OK) {
menu_show_error(menu, cart_load_convert_error_message(err));
return;
}
}

err = cart_load_64dd_ipl_and_disk(menu, draw_progress);
if (err != CART_LOAD_OK) {
menu_show_error(menu, cart_load_convert_error_message(err));
return;
}

menu->next_mode = MENU_MODE_BOOT;

if (load_disk_with_rom) {
Expand Down

0 comments on commit b70729c

Please sign in to comment.