|
|
| version 1.47, 2004/01/11 16:58:47 | version 1.50, 2004/01/31 19:45:25 |
|---|---|
| Line 26 | Line 26 |
| #include "s98.h" | #include "s98.h" |
| #include "diskdrv.h" | #include "diskdrv.h" |
| #include "fddfile.h" | #include "fddfile.h" |
| #include "statsave.h" | |
| #include "mousemng.h" | #include "mousemng.h" |
| #include "configure.h" | #include "configure.h" |
| #include "screenopt.h" | #include "screenopt.h" |
| Line 136 static void MenuBarInit(void) { | Line 135 static void MenuBarInit(void) { |
| } | } |
| InsertMenu(GetMenu(IDM_SASI1), -1); | InsertMenu(GetMenu(IDM_SASI1), -1); |
| InsertMenu(GetMenu(IDM_SASI2), -1); | InsertMenu(GetMenu(IDM_SASI2), -1); |
| InsertMenu(GetMenu(IDM_SCSI0), -1); | |
| InsertMenu(GetMenu(IDM_SCSI1), -1); | |
| InsertMenu(GetMenu(IDM_SCSI2), -1); | |
| InsertMenu(GetMenu(IDM_SCSI3), -1); | |
| InsertMenu(GetMenu(IDM_KEYBOARD), -1); | InsertMenu(GetMenu(IDM_KEYBOARD), -1); |
| InsertMenu(GetMenu(IDM_SOUND), -1); | InsertMenu(GetMenu(IDM_SOUND), -1); |
| InsertMenu(GetMenu(IDM_MEMORY), -1); | InsertMenu(GetMenu(IDM_MEMORY), -1); |
| ChangeMenuAttributes(GetMenuRef(IDM_EDIT), kMenuAttrAutoDisable, 0); | ChangeMenuAttributes(GetMenuRef(IDM_EDIT), kMenuAttrAutoDisable, 0); |
| DisableAllMenuItems(GetMenuHandle(IDM_EDIT)); | DisableAllMenuItems(GetMenuHandle(IDM_EDIT)); |
| SetMenuItemModifiers(GetMenuRef(IDM_FDD2), IDM_FDD2OPEN, kMenuOptionModifier); | SetMenuItemModifiers(GetMenuRef(IDM_FDD2), IDM_FDD2OPEN, kMenuShiftModifier); |
| SetMenuItemModifiers(GetMenuRef(IDM_FDD2), IDM_FDD2EJECT, kMenuOptionModifier); | SetMenuItemModifiers(GetMenuRef(IDM_FDD2), IDM_FDD2EJECT, kMenuShiftModifier); |
| SetMenuItemModifiers(GetMenuRef(IDM_SASI2), IDM_SASI2OPEN, kMenuOptionModifier); | SetMenuItemModifiers(GetMenuRef(IDM_SASI2), IDM_SASI2OPEN, kMenuShiftModifier); |
| DrawMenuBar(); | DrawMenuBar(); |
| #else | #else |
| OSStatus err; | OSStatus err; |
| Line 250 static void HandleMenuChoice(long wParam | Line 253 static void HandleMenuChoice(long wParam |
| diskdrv_sethdd(1, NULL); | diskdrv_sethdd(1, NULL); |
| break; | break; |
| case IDM_SCSI0OPEN: | |
| dialog_changehdd(0x20); | |
| break; | |
| case IDM_SCSI0REMOVE: | |
| diskdrv_sethdd(0x20, NULL); | |
| break; | |
| case IDM_SCSI1OPEN: | |
| dialog_changehdd(0x21); | |
| break; | |
| case IDM_SCSI1REMOVE: | |
| diskdrv_sethdd(0x21, NULL); | |
| break; | |
| case IDM_SCSI2OPEN: | |
| dialog_changehdd(0x22); | |
| break; | |
| case IDM_SCSI2REMOVE: | |
| diskdrv_sethdd(0x22, NULL); | |
| break; | |
| case IDM_SCSI3OPEN: | |
| dialog_changehdd(0x23); | |
| break; | |
| case IDM_SCSI3REMOVE: | |
| diskdrv_sethdd(0x23, NULL); | |
| break; | |
| case IDM_FULLSCREEN: | case IDM_FULLSCREEN: |
| toggleFullscreen(); | toggleFullscreen(); |
| break; | break; |
| Line 743 int main(int argc, char *argv[]) { | Line 778 int main(int argc, char *argv[]) { |
| S98_init(); | S98_init(); |
| hid_init(); | hid_init(); |
| #ifndef SUPPORT_WAVEMIX | |
| if (soundmng_initialize() == SUCCESS) { | if (soundmng_initialize() == SUCCESS) { |
| soundmng_pcmvolume(SOUND_PCMSEEK, np2cfg.MOTORVOL); | soundmng_pcmvolume(SOUND_PCMSEEK, np2cfg.MOTORVOL); |
| soundmng_pcmvolume(SOUND_PCMSEEK1, np2cfg.MOTORVOL); | soundmng_pcmvolume(SOUND_PCMSEEK1, np2cfg.MOTORVOL); |
| } | } |
| #endif | |
| #if defined(NP2GCC) | #if defined(NP2GCC) |
| mousemng_initialize(); | mousemng_initialize(); |
| Line 865 int main(int argc, char *argv[]) { | Line 902 int main(int argc, char *argv[]) { |
| #if defined(NP2GCC) | #if defined(NP2GCC) |
| mousemng_disable(MOUSEPROC_SYSTEM); | mousemng_disable(MOUSEPROC_SYSTEM); |
| #endif | #endif |
| #ifndef SUPPORT_WAVEMIX | |
| soundmng_deinitialize(); | soundmng_deinitialize(); |
| #endif | |
| scrnmng_destroy(); | scrnmng_destroy(); |
| if (sys_updates & (SYS_UPDATECFG | SYS_UPDATEOSCFG)) { | if (sys_updates & (SYS_UPDATECFG | SYS_UPDATEOSCFG)) { |
| Line 1177 static void toggleFullscreen(void) { | Line 1215 static void toggleFullscreen(void) { |
| np2oscfg.winx = bounds.left; | np2oscfg.winx = bounds.left; |
| np2oscfg.winy = bounds.top; | np2oscfg.winy = bounds.top; |
| DisposeWindow(hWndMain); | DisposeWindow(hWndMain); |
| BeginFullScreen(&bkfullscreen, 0, &w, &h, &hWndMain, NULL, fullScreenAllowEvents); | BeginFullScreen(&bkfullscreen, 0, &w, &h, &hWndMain, NULL, fullScreenAllowEvents | fullScreenCaptureDisplay); |
| DisableMenuItem(menu, IDM_ROLNORMAL); | DisableMenuItem(menu, IDM_ROLNORMAL); |
| DisableMenuItem(menu, IDM_ROLLEFT); | DisableMenuItem(menu, IDM_ROLLEFT); |
| DisableMenuItem(menu, IDM_ROLRIGHT); | DisableMenuItem(menu, IDM_ROLRIGHT); |