int height; }; static const TCHAR s_szTitle[] = TEXT("console"); static const TCHAR s_szClassName[] = TEXT("TRACE-console"); static const TCHAR s_szViewFont[] = TEXT(VIEW_TEXT); static const OEMCHAR crlf[] = OEMTEXT("\r\n"); static TRACECFG tracecfg; static const OEMCHAR np2trace[] = OEMTEXT("np2trace.ini"); static const OEMCHAR inititle[] = OEMTEXT("TRACE"); static const PFTBL initbl[4] = { PFVAL("posx", PFTYPE_SINT32, &tracecfg.posx), PFVAL("posy", PFTYPE_SINT32, &tracecfg.posy), PFVAL("width", PFTYPE_SINT32, &tracecfg.width), PFVAL("height", PFTYPE_SINT32, &tracecfg.height) }; //! 唯一のインスタンスです CTraceWnd CTraceWnd::sm_instance; /** * インスタンスを得る * @return インスタンス */ inline CTraceWnd* CTraceWnd::GetInstance() { return &sm_instance;
static const TCHAR ini_title[] = _T("NekoProjectII"); #if defined(_UNICODE) static const TCHAR inifile[] = _T("np2u.cfg"); #else static const TCHAR inifile[] = _T("np2.cfg"); #endif enum { PFRO_STR = PFFLAG_RO + PFTYPE_STR, PFRO_BOOL = PFFLAG_RO + PFTYPE_BOOL, PFRO_UINT8 = PFFLAG_RO + PFTYPE_UINT8, PFRO_HEX32 = PFFLAG_RO + PFTYPE_HEX32 }; static const PFTBL iniitem[] = { PFVAL("WindposX", PFTYPE_SINT32, &np2oscfg.winx), PFVAL("WindposY", PFTYPE_SINT32, &np2oscfg.winy), PFSTR("FDfolder", PFTYPE_STR, fddfolder), PFSTR("HDfolder", PFTYPE_STR, hddfolder), PFSTR("bmap_Dir", PFTYPE_STR, bmpfilefolder), PFSTR("fontfile", PFTYPE_STR, np2cfg.fontfile), PFSTR("biospath", PFRO_STR, np2cfg.biospath), #if defined(SUPPORT_HOSTDRV) PFSTR("hdrvroot", PFRO_STR, np2cfg.hdrvroot), PFVAL("hdrv_acc", PFRO_UINT8, &np2cfg.hdrvacc), #endif PFSTR("pc_model", PFTYPE_STR, np2cfg.model), PFVAL("clk_base", PFTYPE_UINT32, &np2cfg.baseclock),
PFRO_BITMAP = PFFLAG_RO + PFTYPE_BITMAP, PFRO_UINT8 = PFFLAG_RO + PFTYPE_UINT8, PFRO_SINT32 = PFFLAG_RO + PFTYPE_SINT32, PFRO_HEX8 = PFFLAG_RO + PFTYPE_HEX8, PFRO_HEX32 = PFFLAG_RO + PFTYPE_HEX32, PFRO_BYTE3 = PFFLAG_RO + PFTYPE_BYTE3, PFRO_KB = PFFLAG_RO + PFTYPE_KB }; /** * OS 設定 テーブル */ static const PFTBL s_IniItems[] = { PFSTR("np2title", PFRO_STR, np2oscfg.titles), PFVAL("np2winid", PFRO_BYTE3, np2oscfg.winid), PFVAL("WindposX", PFTYPE_SINT32, &np2oscfg.winx), PFVAL("WindposY", PFTYPE_SINT32, &np2oscfg.winy), PFMAX("paddingx", PFRO_SINT32, &np2oscfg.paddingx, 32), PFMAX("paddingy", PFRO_SINT32, &np2oscfg.paddingy, 32), PFVAL("Win_Snap", PFTYPE_BOOL, &np2oscfg.WINSNAP), PFSTR("FDfolder", PFTYPE_STR, fddfolder), PFSTR("HDfolder", PFTYPE_STR, hddfolder), PFSTR("bmap_Dir", PFTYPE_STR, bmpfilefolder), PFSTR("fontfile", PFTYPE_STR, np2cfg.fontfile), PFSTR("biospath", PFRO_STR, np2cfg.biospath), #if defined(SUPPORT_HOSTDRV) PFSTR("hdrvroot", PFRO_STR, np2cfg.hdrvroot), PFVAL("hdrv_acc", PFRO_UINT8, &np2cfg.hdrvacc),
static KDISPCFG kdispcfg; static const TCHAR kdisptitle[] = _T("Key Display"); static const TCHAR kdispclass[] = _T("NP2-KeyDispWin"); static const TCHAR str_kdclose[] = _T("&Close"); static const UINT32 kdisppal[KEYDISP_PALS] = {0x00000000, 0xffffffff, 0xf9ff0000}; #if defined(OSLANG_UTF8) static const OEMCHAR kdispapp[] = OEMTEXT("Key Display"); #else #define kdispapp kdisptitle #endif static const PFTBL kdispini[] = { PFVAL("WindposX", PFTYPE_SINT32, &kdispcfg.posx), PFVAL("WindposY", PFTYPE_SINT32, &kdispcfg.posy), PFVAL("keydmode", PFTYPE_UINT8, &kdispcfg.mode), PFVAL("windtype", PFTYPE_BOOL, &kdispcfg.type)}; static UINT8 kdgetpal8(CMNPALFN *self, UINT num) { if (num < KEYDISP_PALS) { return(kdisppal[num] >> 24); } return(0); } static UINT32 kdgetpal32(CMNPALFN *self, UINT num) {