|
|
| version 1.12, 2003/10/23 06:26:16 | version 1.14, 2003/10/23 21:00:24 |
|---|---|
| Line 28 | Line 28 |
| #include "statsave.h" | #include "statsave.h" |
| #include "mousemng.h" | #include "mousemng.h" |
| #include "configure.h" | #include "configure.h" |
| #include "screenopt.h" | |
| #define USE_RESUME | #define USE_RESUME |
| NP2OSCFG np2oscfg = {0, 2, 0, 0, 0, 0}; | NP2OSCFG np2oscfg = {0, 2, 0, 0, 0, 0, 1, 0}; |
| WindowPtr hWndMain; | WindowPtr hWndMain; |
| BOOL np2running; | BOOL np2running; |
| Line 255 static void HandleMenuChoice(long wParam | Line 256 static void HandleMenuChoice(long wParam |
| break; | break; |
| #if defined(NP2GCC) | #if defined(NP2GCC) |
| case IDM_SCREENOPT: | |
| initScreenOpt(); | |
| break; | |
| case IDM_MOUSE: | case IDM_MOUSE: |
| mouse_running(MOUSE_XOR); | mouse_running(MOUSE_XOR); |
| menu_setmouse(np2oscfg.MOUSE_SW ^ 1); | menu_setmouse(np2oscfg.MOUSE_SW ^ 1); |
| Line 656 int main(int argc, char *argv[]) { | Line 661 int main(int argc, char *argv[]) { |
| pccore_reset(); | pccore_reset(); |
| #if defined(USE_RESUME) | #if defined(USE_RESUME) |
| flagload(np2resume); | if (np2oscfg.resume) { |
| flagload(np2resume); | |
| } | |
| #endif | #endif |
| #if 0 | #if 0 |
| Line 724 int main(int argc, char *argv[]) { | Line 731 int main(int argc, char *argv[]) { |
| #endif | #endif |
| pccore_exec(framecnt == 0); | pccore_exec(framecnt == 0); |
| framecnt++; | framecnt++; |
| // ¥Æ¥¹¥È | |
| cnt = timing_getcount(); | cnt = timing_getcount(); |
| if (framecnt > cnt) { | if (framecnt > cnt) { |
| waitcnt = framecnt; | waitcnt = framecnt; |
| Line 737 int main(int argc, char *argv[]) { | Line 743 int main(int argc, char *argv[]) { |
| framemax++; | framemax++; |
| } | } |
| if (cnt >= 12) { | if (cnt >= 12) { |
| timing_init(); | timing_reset(); |
| } | } |
| else { | else { |
| timing_setcount(cnt - framecnt); | timing_setcount(cnt - framecnt); |
| Line 757 int main(int argc, char *argv[]) { | Line 763 int main(int argc, char *argv[]) { |
| pccore_cfgupdate(); | pccore_cfgupdate(); |
| #if defined(USE_RESUME) | #if defined(USE_RESUME) |
| flagsave(np2resume); | if (np2oscfg.resume) { |
| flagsave(np2resume); | |
| } | |
| #endif | #endif |
| pccore_term(); | pccore_term(); |