N64FlashcartMenu
Loading...
Searching...
No Matches
cart_load.h
Go to the documentation of this file.
1
7#ifndef CART_LOAD_H__
8#define CART_LOAD_H__
9
10
11#include "disk_info.h"
12#include "flashcart/flashcart.h"
13#include "menu_state.h"
14#include "rom_info.h"
15
16
17typedef enum {
18 CART_LOAD_OK,
19 CART_LOAD_ERR_ROM_LOAD_FAIL,
20 CART_LOAD_ERR_SAVE_LOAD_FAIL,
21 CART_LOAD_ERR_64DD_PRESENT,
22 CART_LOAD_ERR_64DD_IPL_NOT_FOUND,
23 CART_LOAD_ERR_64DD_IPL_LOAD_FAIL,
24 CART_LOAD_ERR_64DD_DISK_LOAD_FAIL,
25 CART_LOAD_ERR_EMU_NOT_FOUND,
26 CART_LOAD_ERR_EMU_LOAD_FAIL,
27 CART_LOAD_ERR_EMU_ROM_LOAD_FAIL,
28 CART_LOAD_ERR_CREATE_SAVES_SUBDIR_FAIL,
29 CART_LOAD_ERR_EXP_PAK_NOT_FOUND,
30 CART_LOAD_ERR_FUNCTION_NOT_SUPPORTED,
31} cart_load_err_t;
32
33typedef enum {
34 CART_LOAD_EMU_TYPE_NES,
35 CART_LOAD_EMU_TYPE_SNES,
36 CART_LOAD_EMU_TYPE_GAMEBOY,
37 CART_LOAD_EMU_TYPE_GAMEBOY_COLOR,
38 CART_LOAD_EMU_TYPE_SEGA_GENERIC_8BIT,
39} cart_load_emu_type_t;
40
41
42char *cart_load_convert_error_message (cart_load_err_t err);
43cart_load_err_t cart_load_n64_rom_and_save (menu_t *menu, flashcart_progress_callback_t progress);
44cart_load_err_t cart_load_64dd_ipl_and_disk (menu_t *menu, flashcart_progress_callback_t progress);
45cart_load_err_t cart_load_emulator (menu_t *menu, cart_load_emu_type_t emu_type, flashcart_progress_callback_t progress);
46
47
48#endif
64DD disk information
Flashcart Subsystem.
Menu State.
Menu Structure.
Definition: menu_state.h:63
N64 ROM Database.