|
|
| version 1.7, 2003/10/23 06:26:16 | version 1.9, 2003/10/23 13:31:13 |
|---|---|
| Line 217 static int flagsave(const char *ext) { | Line 217 static int flagsave(const char *ext) { |
| return(ret); | return(ret); |
| } | } |
| static void flagdelete(const char *ext) { | |
| char path[MAX_PATH]; | |
| getstatfilename(path, ext, sizeof(path)); | |
| file_delete(path); | |
| } | |
| static int flagload(const char *ext, const char *title, BOOL force) { | static int flagload(const char *ext, const char *title, BOOL force) { |
| int ret; | int ret; |
| Line 1374 int WINAPI WinMain(HINSTANCE hInstance, | Line 1382 int WINAPI WinMain(HINSTANCE hInstance, |
| pccore_exec(framecnt == 0); | pccore_exec(framecnt == 0); |
| dclock_callback(); | dclock_callback(); |
| framecnt++; | framecnt++; |
| #if 1 | |
| cnt = timing_getcount(); | cnt = timing_getcount(); |
| if (framecnt > cnt) { | if (framecnt > cnt) { |
| waitcnt = framecnt; | waitcnt = framecnt; |
| Line 1387 int WINAPI WinMain(HINSTANCE hInstance, | Line 1394 int WINAPI WinMain(HINSTANCE hInstance, |
| framemax++; | framemax++; |
| } | } |
| if (cnt >= 12) { | if (cnt >= 12) { |
| timing_init(); | timing_reset(); |
| } | } |
| else { | else { |
| timing_setcount(cnt - framecnt); | timing_setcount(cnt - framecnt); |
| } | } |
| framecnt = 0; | framecnt = 0; |
| } | } |
| #else | |
| if (timing_getcount() < framecnt) { | |
| waitcnt = framecnt; | |
| if (framemax > 1) { | |
| framemax--; | |
| } | |
| } | |
| else if (framecnt >= framemax) { | |
| waitcnt = framecnt; | |
| if (framemax < 12) { | |
| framemax++; | |
| } | |
| } | |
| #endif | |
| } | } |
| else { | else { |
| processwait(waitcnt); | processwait(waitcnt); |
| Line 1435 int WINAPI WinMain(HINSTANCE hInstance, | Line 1428 int WINAPI WinMain(HINSTANCE hInstance, |
| flagsave(np2resume); | flagsave(np2resume); |
| } | } |
| else { | else { |
| // DeleteFile(file_getcd(np2resume)); | flagdelete(np2resume); |
| } | } |
| #ifdef USE_ROMEO | #ifdef USE_ROMEO |