Skip to content

Commit

Permalink
Update menu_state.h
Browse files Browse the repository at this point in the history
  • Loading branch information
networkfusion authored Oct 14, 2023
1 parent 0c75003 commit 90ea64e
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions src/menu/menu_state.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
#define MENU_STRUCT_H__


#include <time.h>

#include "boot/boot.h"
#include "disk_info.h"
#include "flashcart/flashcart.h"
#include "path.h"
#include "rom_info.h"
#include "settings.h"


Expand All @@ -26,19 +30,22 @@ typedef enum {
MENU_MODE_SYSTEM_INFO,
MENU_MODE_IMAGE_VIEWER,
MENU_MODE_MUSIC_PLAYER,
MENU_MODE_CREDITS,
MENU_MODE_LOAD,
MENU_MODE_SETTINGS_EDITOR,
MENU_MODE_EMULATOR_LOAD,
MENU_MODE_CREDITS,
MENU_MODE_LOAD_ROM,
MENU_MODE_LOAD_DISK,
MENU_MODE_LOAD_EMULATOR,
MENU_MODE_ERROR,
MENU_MODE_FAULT,
MENU_MODE_BOOT,
__MENU_MODE_COUNT,
} menu_mode_t;

/** @brief File entry type enumeration */
typedef enum {
ENTRY_TYPE_DIR,
ENTRY_TYPE_ROM,
ENTRY_TYPE_DISK,
ENTRY_TYPE_EMULATOR,
ENTRY_TYPE_SAVE,
ENTRY_TYPE_IMAGE,
Expand All @@ -60,23 +67,22 @@ typedef struct {

settings_t settings;
boot_params_t *boot_params;
flashcart_error_t flashcart_error;

char *error_message;
flashcart_err_t flashcart_err;

time_t current_time;

struct {
bool go_up;
bool go_down;
bool go_left;
bool go_right;
bool fast;
int vertical_held_counter;
int horizontal_held_counter;
bool go_fast;

bool enter;
bool back;

bool file_info;
bool options;
bool system_info;
bool settings;
bool credits;
Expand All @@ -87,8 +93,16 @@ typedef struct {
path_t *directory;
entry_t list[BROWSER_LIST_SIZE];
int entries;
entry_t *entry;
int selected;
} browser;

struct {
path_t *rom_path;
rom_info_t rom_info;
path_t *disk_path;
disk_info_t disk_info;
} load;
} menu_t;


Expand Down

0 comments on commit 90ea64e

Please sign in to comment.