implement in-game menu system
commitfcf5f50e506b92efadcd5d5e12720180604e9f0c
authorrofl0r <rofl0r@users.noreply.github.com>
Sun, 20 Mar 2022 15:42:31 +0000 (20 15:42 +0000)
committerrofl0r <rofl0r@users.noreply.github.com>
Tue, 22 Mar 2022 03:38:13 +0000 (22 03:38 +0000)
tree9af391761e8ee1a896b13fb215fff0d4209f05bc
parent34351952581072294f3e607833a8441a9678e1e3
implement in-game menu system

if no rom name is passed on the command line, the user is presented
with a menu allowing him to select a rom.
also the esc key is remapped to bring up the menu at any time.

the menu features the following functions:
- rom selection / file browser
- state save/load
- pausing the emulation just by means of bringing it up
- reset
- controller config

a new rc variable "menu" is available to map a key to bring up the
menu, and a "romdir" variable is used to set the initial directory
for the rom browser.

not implemented yet is permanent storage of changed controller config.
Rules
defs.h
exports.c
ezmenu.h [new file with mode: 0644]
font5x7.h [new file with mode: 0644]
main.c
menu.c [new file with mode: 0644]
menu.h [new file with mode: 0644]
rccmds.c