diff options
Diffstat (limited to 'source/main.c')
-rw-r--r-- | source/main.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/source/main.c b/source/main.c index f096f9a..0610a6f 100644 --- a/source/main.c +++ b/source/main.c @@ -31,6 +31,7 @@ #include "spec.h" #include "config.h" #include "snapshot.h" +#include "snap.h" #ifndef DSSPEC_VERSION #define DSSPEC_VERSION "DEV " __TIME__ "/" __DATE__ @@ -61,7 +62,7 @@ static const char *main_menu[]= { "Reset Spectrum", - "Select Tape", + "Load TAP File", "Configure", "Map Joypad to Keys", "Save Memory Snapshot", @@ -76,7 +77,7 @@ static const char *main_menu[]= typedef enum { MenuReset, - MenuSelectTape, + MenuLoadTAP, MenuConfigure, MenuMapJoypad, MenuSaveSnapshot, @@ -299,8 +300,17 @@ int main(int argc, char *argv[]) SPECReset(z80); break; - case MenuSelectTape: + case MenuLoadTAP: + { + char file[FILENAME_MAX]; + + if (GUI_FileSelect(last_dir, file, ".TAP")) + { + TAPCloseTape(); + TAPOpenTape(file); + } break; + } case MenuConfigure: GUI_Config(); |