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 "flashcart/flashcart.h"
12#include "menu_state.h"
13#include "rom_database.h"
14
15
16typedef enum {
17 CART_LOAD_OK,
18 CART_LOAD_ERR_SAVES_SUBDIR,
19 CART_LOAD_ERR_ROM,
20 CART_LOAD_ERR_SAVE,
21 CART_LOAD_ERR_EMU_NOT_FOUND,
22 CART_LOAD_ERR_EMU,
23 CART_LOAD_ERR_EMU_ROM,
24} cart_load_err_t;
25
26typedef enum {
27 CART_LOAD_EMU_TYPE_NES,
28 CART_LOAD_EMU_TYPE_SNES,
29 CART_LOAD_EMU_TYPE_GAMEBOY,
30 CART_LOAD_EMU_TYPE_GAMEBOY_COLOR,
31 CART_LOAD_EMU_TYPE_SEGA_GENERIC_8BIT,
32} cart_load_emu_type_t;
33
34
35char *cart_load_convert_error_message (cart_load_err_t err);
36cart_load_err_t cart_load_n64_rom_and_save (menu_t *menu, rom_header_t *header, flashcart_progress_callback_t progress);
37cart_load_err_t cart_load_emulator (menu_t *menu, cart_load_emu_type_t emu_type, flashcart_progress_callback_t progress);
38
39
40#endif
Flashcart Subsystem.
Menu State.
Menu Structure.
Definition: menu_state.h:58
N64 ROM Database.
ROM Header Structure.
Definition: rom_database.h:201