|
N64FlashcartMenu
|
Bookkeeping of loaded ROMs. More...
Go to the source code of this file.
Data Structures | |
| struct | bookkeeping_item_t |
| Bookkeeping item structure. More... | |
| struct | bookkeeping_t |
| ROM bookkeeping structure. More... | |
Macros | |
| #define | FAVORITES_COUNT 8 |
| #define | HISTORY_COUNT 8 |
Enumerations | |
| enum | bookkeeping_item_types_t { BOOKKEEPING_TYPE_EMPTY , BOOKKEEPING_TYPE_ROM , BOOKKEEPING_TYPE_DISK } |
| Bookkeeping item types enumeration. More... | |
Functions | |
| void | bookkeeping_init (char *path) |
| Initialize ROM bookkeeping path. | |
| void | bookkeeping_load (bookkeeping_t *history) |
| Load ROM bookkeeping. | |
| void | bookkeeping_save (bookkeeping_t *history) |
| Save ROM bookkeeping. | |
| void | bookkeeping_history_add (bookkeeping_t *bookkeeping, path_t *primary_path, path_t *secondary_path, bookkeeping_item_types_t type) |
| Add a ROM to the history. | |
| void | bookkeeping_favorite_add (bookkeeping_t *bookkeeping, path_t *primary_path, path_t *secondary_path, bookkeeping_item_types_t type) |
| Add a ROM to the favorites. | |
| void | bookkeeping_favorite_remove (bookkeeping_t *bookkeeping, int selection) |
| Remove a ROM from the favorites. | |
Bookkeeping of loaded ROMs.
| struct bookkeeping_item_t |
Bookkeeping item structure.
| Data Fields | ||
|---|---|---|
| path_t * | primary_path |
Primary path |
| path_t * | secondary_path |
Secondary path |
| bookkeeping_item_types_t | bookkeeping_type |
Bookkeeping item type |
| struct bookkeeping_t |
ROM bookkeeping structure.
| Data Fields | ||
|---|---|---|
| bookkeeping_item_t | history_items[HISTORY_COUNT] |
History items |
| bookkeeping_item_t | favorite_items[FAVORITES_COUNT] |
Favorite items |
| #define FAVORITES_COUNT 8 |
Maximum number of favorite items
| #define HISTORY_COUNT 8 |
Maximum number of history items
| void bookkeeping_init | ( | char * | path | ) |
Initialize ROM bookkeeping path.
| path | The path to initialize. |
Initialize ROM bookkeeping path.
| path | Path to the history file. |
| void bookkeeping_load | ( | bookkeeping_t * | history | ) |
Load ROM bookkeeping.
| history | Pointer to the bookkeeping structure to load. |
Load ROM bookkeeping.
| history | Pointer to the bookkeeping structure. |
| void bookkeeping_save | ( | bookkeeping_t * | history | ) |
Save ROM bookkeeping.
| history | Pointer to the bookkeeping structure to save. |
Save ROM bookkeeping.
| history | Pointer to the bookkeeping structure. |
| void bookkeeping_history_add | ( | bookkeeping_t * | bookkeeping, |
| path_t * | primary_path, | ||
| path_t * | secondary_path, | ||
| bookkeeping_item_types_t | type ) |
Add a ROM to the history.
| bookkeeping | The bookkeeping structure. |
| primary_path | The primary path of the ROM. |
| secondary_path | The secondary path of the ROM. |
| type | The type of the bookkeeping item. |
Add a ROM to the history.
| bookkeeping | Pointer to the bookkeeping structure. |
| primary_path | Pointer to the primary path. |
| secondary_path | Pointer to the secondary path. |
| type | The type of the bookkeeping item. |
| void bookkeeping_favorite_add | ( | bookkeeping_t * | bookkeeping, |
| path_t * | primary_path, | ||
| path_t * | secondary_path, | ||
| bookkeeping_item_types_t | type ) |
Add a ROM to the favorites.
| bookkeeping | The bookkeeping structure. |
| primary_path | The primary path of the ROM. |
| secondary_path | The secondary path of the ROM. |
| type | The type of the bookkeeping item. |
Add a ROM to the favorites.
| bookkeeping | Pointer to the bookkeeping structure. |
| primary_path | Pointer to the primary path. |
| secondary_path | Pointer to the secondary path. |
| type | The type of the bookkeeping item. |
| void bookkeeping_favorite_remove | ( | bookkeeping_t * | bookkeeping, |
| int | selection ) |
Remove a ROM from the favorites.
| bookkeeping | The bookkeeping structure. |
| selection | The index of the favorite item to remove. |
Remove a ROM from the favorites.
| bookkeeping | Pointer to the bookkeeping structure. |
| selection | Index of the item to remove. |