|
|
| version 1.3, 2003/10/21 14:57:41 | version 1.6, 2003/10/26 08:59:53 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include <time.h> | #include <time.h> |
| #include <winnls32.h> | #include <winnls32.h> |
| #include "resource.h" | |
| #include "strres.h" | #include "strres.h" |
| #include "parts.h" | |
| #include "resource.h" | |
| #include "np2.h" | #include "np2.h" |
| #include "np2arg.h" | #include "np2arg.h" |
| #include "dosio.h" | #include "dosio.h" |
| Line 754 int WINAPI WinMain(HINSTANCE hInstance, | Line 755 int WINAPI WinMain(HINSTANCE hInstance, |
| np2arg_analize(lpszCmdLine); // タイミング修正 // ver0.29 | np2arg_analize(lpszCmdLine); // タイミング修正 // ver0.29 |
| initload(); | initload(); |
| srand((unsigned)time(NULL)); | rand_setseed((unsigned)time(NULL)); |
| if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) { | if ((hwndorg = FindWindow(szClassName, NULL)) != NULL) { |
| ShowWindow(hwndorg, SW_RESTORE); | ShowWindow(hwndorg, SW_RESTORE); |
| Line 928 int WINAPI WinMain(HINSTANCE hInstance, | Line 929 int WINAPI WinMain(HINSTANCE hInstance, |
| } | } |
| else { // auto skip | else { // auto skip |
| if (!waitcnt) { | if (!waitcnt) { |
| UINT cnt; | |
| joy_flash(); | joy_flash(); |
| mouse_callback(); | mouse_callback(); |
| pccore_exec(framecnt == 0); | pccore_exec(framecnt == 0); |
| framecnt++; | framecnt++; |
| if (timing_getcount() < framecnt) { | cnt = timing_getcount(); |
| if (framecnt > cnt) { | |
| waitcnt = framecnt; | waitcnt = framecnt; |
| if (framemax > 1) { | if (framemax > 1) { |
| framemax--; | framemax--; |
| } | } |
| } | } |
| else if (framecnt >= framemax) { | else if (framecnt >= framemax) { |
| waitcnt = framecnt; | |
| if (framemax < 12) { | if (framemax < 12) { |
| framemax++; | framemax++; |
| } | } |
| if (cnt >= 12) { | |
| timing_reset(); | |
| } | |
| else { | |
| timing_setcount(cnt - framecnt); | |
| } | |
| processwait(0); | |
| } | } |
| } | } |
| else { | else { |