|
|
| version 1.1, 2003/10/16 17:59:24 | version 1.5, 2005/03/20 08:58:20 |
|---|---|
| Line 4 | Line 4 |
| #include "dialog.h" | #include "dialog.h" |
| #include "dialogs.h" | #include "dialogs.h" |
| #include "pccore.h" | #include "pccore.h" |
| #include "np2info.h" | |
| static const TCHAR str_np2title[] = _T("Neko Project II "); | |
| static const TCHAR np2infostr[] = \ | |
| _T("CPU: %CPU% %CLOCK%\n") \ | |
| _T("MEM: %MEM1%\n") \ | |
| _T("GDC: %GDC%\n") \ | |
| _T(" %GDC2%\n") \ | |
| _T("TEXT: %TEXT%\n") \ | |
| _T("GRPH: %GRPH%\n") \ | |
| _T("SOUND: %EXSND%\n") \ | |
| _T("\n") \ | |
| _T("BIOS: %BIOS%\n") \ | |
| _T("RHYTHM: %RHYTHM%\n") \ | |
| _T("\n") \ | |
| _T("SCREEN: %DISP%"); | |
| static void about_init(HWND hWnd) { | static void about_init(HWND hWnd) { |
| char work[128]; | TCHAR work[128]; |
| TCHAR infostr[1024]; | |
| strcpy(work, "Neko Project II "); | milstr_ncpy(work, str_np2title, NELEMENTS(work)); |
| strcat(work, np2version); | milstr_ncat(work, np2version, NELEMENTS(work)); |
| #ifdef NEW286 | |
| strcat(work, "+"); | |
| #endif | |
| SetDlgItemText(hWnd, IDC_NP2VER, work); | SetDlgItemText(hWnd, IDC_NP2VER, work); |
| np2info(infostr, np2infostr, NELEMENTS(infostr), NULL); | |
| SetDlgItemText(hWnd, IDC_NP2INFO, infostr); | |
| SetFocus(GetDlgItem(hWnd, IDOK)); | SetFocus(GetDlgItem(hWnd, IDOK)); |
| } | } |