diff options
Diffstat (limited to 'apps/plugins/zxbox/spmain.c')
-rw-r--r-- | apps/plugins/zxbox/spmain.c | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/apps/plugins/zxbox/spmain.c b/apps/plugins/zxbox/spmain.c index 2460164e4f..030047cc94 100644 --- a/apps/plugins/zxbox/spmain.c +++ b/apps/plugins/zxbox/spmain.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include "sptape.h" | 31 | #include "sptape.h" |
32 | #include "spsound.h" | 32 | #include "spsound.h" |
33 | #include "snapshot.h" | 33 | #include "snapshot.h" |
34 | #include "spver.h" | ||
35 | 34 | ||
36 | #include "spconf.h" | 35 | #include "spconf.h" |
37 | 36 | ||
@@ -48,15 +47,15 @@ | |||
48 | 47 | ||
49 | #include "zxbox_keyb.h" | 48 | #include "zxbox_keyb.h" |
50 | 49 | ||
51 | int endofsingle; | 50 | int endofsingle IBSS_ATTR; |
52 | 51 | ||
53 | int sp_nosync = 0; | 52 | int sp_nosync IBSS_ATTR = 0; |
54 | 53 | ||
55 | int showframe = 1; | 54 | int showframe IBSS_ATTR = 1; |
56 | int load_immed = 1; | 55 | int load_immed = 1; |
57 | 56 | ||
58 | qbyte sp_int_ctr = 0; | 57 | qbyte sp_int_ctr IBSS_ATTR = 0; |
59 | int intkeys[5]; | 58 | int intkeys[5] IBSS_ATTR; |
60 | 59 | ||
61 | #ifdef USE_DJGPP | 60 | #ifdef USE_DJGPP |
62 | #define DOS | 61 | #define DOS |
@@ -354,6 +353,8 @@ static bool zxbox_menu(void) | |||
354 | static const struct menu_item items[] = { | 353 | static const struct menu_item items[] = { |
355 | { "VKeyboard", NULL }, | 354 | { "VKeyboard", NULL }, |
356 | { "Play/Pause Tape", NULL }, | 355 | { "Play/Pause Tape", NULL }, |
356 | { "Save quick snapshot", NULL }, | ||
357 | { "Load quick snapshot", NULL }, | ||
357 | { "Save Snapshot", NULL }, | 358 | { "Save Snapshot", NULL }, |
358 | { "Toggle \"fast\" mode", NULL }, | 359 | { "Toggle \"fast\" mode", NULL }, |
359 | { "Options", NULL }, | 360 | { "Options", NULL }, |
@@ -380,22 +381,27 @@ static bool zxbox_menu(void) | |||
380 | break; | 381 | break; |
381 | case 1: | 382 | case 1: |
382 | pause_play(); | 383 | pause_play(); |
383 | /* SPNM(load_trapped) = 1; | ||
384 | DANM(haltstate) = 1; | ||
385 | DANM(tc) = 0;*/ | ||
386 | menu_quit=1; | 384 | menu_quit=1; |
387 | break; | 385 | break; |
388 | case 2: | 386 | case 2: |
387 | save_quick_snapshot(); | ||
388 | menu_quit = 1; | ||
389 | break; | ||
390 | case 3: | ||
391 | load_quick_snapshot(); | ||
392 | menu_quit = 1; | ||
393 | break; | ||
394 | case 4: | ||
389 | save_snapshot(); | 395 | save_snapshot(); |
390 | break; | 396 | break; |
391 | case 3: | 397 | case 5: |
392 | sp_nosync=!sp_nosync; | 398 | sp_nosync=!sp_nosync; |
393 | menu_quit=1; | 399 | menu_quit=1; |
394 | break; | 400 | break; |
395 | case 4: | 401 | case 6: |
396 | options_menu(); | 402 | options_menu(); |
397 | break; | 403 | break; |
398 | case 5: | 404 | case 7: |
399 | menu_quit=1; | 405 | menu_quit=1; |
400 | exit=1; | 406 | exit=1; |
401 | break; | 407 | break; |