|
|
| version 1.1, 2003/11/16 16:43:45 | version 1.3, 2005/03/05 13:25:17 |
|---|---|
| Line 2 | Line 2 |
| #include "np2.h" | #include "np2.h" |
| #include "dosio.h" | #include "dosio.h" |
| #include "fddfile.h" | #include "cpucore.h" |
| #include "i286.h" | |
| #include "pccore.h" | #include "pccore.h" |
| #include "iocore.h" | |
| #include "fddfile.h" | |
| #include "ideio.h" | |
| #include "sysmng.h" | #include "sysmng.h" |
| #include "toolkit.h" | #include "toolkit.h" |
| Line 26 sysmng_workclockreset(void) | Line 28 sysmng_workclockreset(void) |
| { | { |
| workclock.tick = GETTICK(); | workclock.tick = GETTICK(); |
| workclock.clock = I286_CLOCK; | workclock.clock = CPU_CLOCK; |
| workclock.draws = drawcount; | workclock.draws = drawcount; |
| workclock.fps = 0; | workclock.fps = 0; |
| workclock.khz = 0; | workclock.khz = 0; |
| Line 41 sysmng_workclockrenewal(void) | Line 43 sysmng_workclockrenewal(void) |
| workclock.tick += tick; | workclock.tick += tick; |
| workclock.fps = ((drawcount - workclock.draws) * 10000) / tick; | workclock.fps = ((drawcount - workclock.draws) * 10000) / tick; |
| workclock.draws = drawcount; | workclock.draws = drawcount; |
| workclock.khz = (I286_CLOCK - workclock.clock) / tick; | workclock.khz = (CPU_CLOCK - workclock.clock) / tick; |
| workclock.clock = I286_CLOCK; | workclock.clock = CPU_CLOCK; |
| return TRUE; | return TRUE; |
| } | } |
| return FALSE; | return FALSE; |
| Line 63 sysmng_updatecaption(BYTE flag) | Line 65 sysmng_updatecaption(BYTE flag) |
| milstr_ncat(titlestr, " FDD2:", sizeof(titlestr)); | milstr_ncat(titlestr, " FDD2:", sizeof(titlestr)); |
| milstr_ncat(titlestr, file_getname((char *)fdd_diskname(1)), sizeof(titlestr)); | milstr_ncat(titlestr, file_getname((char *)fdd_diskname(1)), sizeof(titlestr)); |
| } | } |
| #if defined(SUPPORT_IDEIO) | |
| { | |
| OEMCHAR *p = sxsi_getfilename(0x02); | |
| printf("CD-ROM: %s\n", p ? p : "unmount"); | |
| } | |
| if (sxsi_getfilename(0x02)) { | |
| milstr_ncat(titlestr, " CD-ROM:", sizeof(titlestr)); | |
| milstr_ncat(titlestr, file_getname((OEMCHAR *)sxsi_getfilename(0x02)), sizeof(titlestr)); | |
| } | |
| #endif | |
| } | } |
| if (flag & 2) { | if (flag & 2) { |
| clockstr[0] = '\0'; | clockstr[0] = '\0'; |