NESe (pronounced "Nessie") is a NES emulator based on the e6502 emulator, also written in C with a focus on speed and portability for use on embedded platforms, especially ARM.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
536B

  1. #ifndef NESE_MENU_H_
  2. #define NESE_MENU_H_
  3. #include "nes.h"
  4. #include "render.h"
  5. #include "input.h"
  6. typedef struct {
  7. int cursor;
  8. int top;
  9. } menu_state;
  10. // Returns filename of selected ROM
  11. char* run_main_menu(menu_state*, nes_Renderer*,
  12. nes_Input_Reader*, nes*);
  13. // TODO: What does this return?
  14. int run_game_menu(menu_state*, nes_Renderer*,
  15. nes_Input_Reader*, nes*);
  16. int modal_popup(const char* message,
  17. nes_Renderer*, nes_Input_Reader*, nes*);
  18. #endif // NESE_MENU_H_