|
|
| version 1.3, 2005/03/05 13:25:17 | version 1.6, 2011/01/15 14:05:47 |
|---|---|
| Line 7 | Line 7 |
| #include "iocore.h" | #include "iocore.h" |
| #include "fddfile.h" | #include "fddfile.h" |
| #include "ideio.h" | #include "ideio.h" |
| #include "sxsi.h" | |
| #include "sysmng.h" | #include "sysmng.h" |
| #include "toolkit.h" | #include "toolkit.h" |
| Line 66 sysmng_updatecaption(BYTE flag) | Line 67 sysmng_updatecaption(BYTE flag) |
| 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) | #if defined(SUPPORT_IDEIO) |
| { | |
| OEMCHAR *p = sxsi_getfilename(0x02); | |
| printf("CD-ROM: %s\n", p ? p : "unmount"); | |
| } | |
| if (sxsi_getfilename(0x02)) { | if (sxsi_getfilename(0x02)) { |
| milstr_ncat(titlestr, " CD-ROM:", sizeof(titlestr)); | milstr_ncat(titlestr, " CD-ROM:", sizeof(titlestr)); |
| milstr_ncat(titlestr, file_getname((OEMCHAR *)sxsi_getfilename(0x02)), sizeof(titlestr)); | milstr_ncat(titlestr, file_getname((OEMCHAR *)sxsi_getfilename(0x02)), sizeof(titlestr)); |
| Line 80 sysmng_updatecaption(BYTE flag) | Line 77 sysmng_updatecaption(BYTE flag) |
| clockstr[0] = '\0'; | clockstr[0] = '\0'; |
| if (np2oscfg.DISPCLK & 2) { | if (np2oscfg.DISPCLK & 2) { |
| if (workclock.fps) { | if (workclock.fps) { |
| SPRINTF(clockstr, " - %u.%1uFPS", workclock.fps / 10, workclock.fps % 10); | g_snprintf(clockstr, sizeof(clockstr), " - %u.%1uFPS", workclock.fps / 10, workclock.fps % 10); |
| } | } |
| else { | else { |
| milstr_ncpy(clockstr, " - 0FPS", sizeof(clockstr)); | milstr_ncpy(clockstr, " - 0FPS", sizeof(clockstr)); |
| } | } |
| } | } |
| if (np2oscfg.DISPCLK & 1) { | if (np2oscfg.DISPCLK & 1) { |
| SPRINTF(work, " %2u.%03uMHz", workclock.khz / 1000, workclock.khz % 1000); | g_snprintf(work, sizeof(work), " %2u.%03uMHz", workclock.khz / 1000, workclock.khz % 1000); |
| if (clockstr[0] == '\0') { | if (clockstr[0] == '\0') { |
| milstr_ncpy(clockstr, " -", sizeof(clockstr)); | milstr_ncpy(clockstr, " -", sizeof(clockstr)); |
| } | } |