--- np2/macosx/ini.cpp 2003/11/13 15:52:04 1.7 +++ np2/macosx/ini.cpp 2004/01/11 19:22:01 1.14 @@ -106,7 +106,7 @@ const INITBL *p; break; case INITYPE_ARGS16: - milstr_ncpy(work, data, 512); + milstr_ncpy(work, data, sizeof(work)); inirdargs16(work, p); break; @@ -334,6 +334,11 @@ static const char inifile[] = "np2.cfg"; static const INITBL iniitem[] = { {"np2title", INITYPE_STR, np2oscfg.titles, sizeof(np2oscfg.titles)}, + {"WindposX", INITYPE_SINT32, &np2oscfg.winx, 0}, + {"WindposY", INITYPE_SINT32, &np2oscfg.winy, 0}, + + {"pc_model", INITYPE_STR, &np2cfg.model, + sizeof(np2cfg.model)}, {"clk_base", INITYPE_SINT32, &np2cfg.baseclock, 0}, {"clk_mult", INITYPE_SINT32, &np2cfg.multiple, 0}, @@ -345,6 +350,9 @@ static const INITBL iniitem[] = { {"HDD1FILE", INITYPE_STR, np2cfg.hddfile[0], MAX_PATH}, {"HDD2FILE", INITYPE_STR, np2cfg.hddfile[1], MAX_PATH}, {"fontfile", INITYPE_STR, np2cfg.fontfile, MAX_PATH}, + {"biospath", INITYPE_STR, np2cfg.biospath, MAX_PATH}, + {"hdrvroot", INITYPE_STR, np2cfg.hdrvroot, MAX_PATH}, + {"hdrv_acc", INITYPE_UINT8, &np2cfg.hdrvacc, 0}, {"SampleHz", INITYPE_UINT16, &np2cfg.samplingrate, 0}, {"Latencys", INITYPE_UINT16, &np2cfg.delayms, 0}, @@ -371,7 +379,8 @@ static const INITBL iniitem[] = { {"Seek_Snd", INITYPE_BOOL, &np2cfg.MOTOR, 0}, {"Seek_Vol", INITYPE_UINT8, &np2cfg.MOTORVOL, 0}, - {"F12_COPY", INITYPE_UINT8, &np2oscfg.F12COPY, 0}, + {"F11_bind", INITYPE_UINT8, &np2oscfg.F11KEY, 0}, + {"F12_bind", INITYPE_UINT8, &np2oscfg.F12KEY, 0}, {"btnRAPID", INITYPE_BOOL, &np2cfg.BTN_RAPID, 0}, {"btn_MODE", INITYPE_BOOL, &np2cfg.BTN_MODE, 0}, {"MS_RAPID", INITYPE_BOOL, &np2cfg.MOUSERAPID, 0}, @@ -400,6 +409,7 @@ static const INITBL iniitem[] = { {"comfirm_", INITYPE_BOOL, &np2oscfg.comfirm, 0}, {"e_resume", INITYPE_BOOL, &np2oscfg.resume, 0}, // ver0.30 {"toolwind", INITYPE_BOOL, &np2oscfg.toolwin, 0}, // ver0.38 + {"jast_snd", INITYPE_BOOL, &np2oscfg.jastsnd, 0}, // ver0.73 {"I286SAVE", INITYPE_BOOL, &np2oscfg.I286SAVE, 0}}; #define INIITEMS (sizeof(iniitem) / sizeof(INITBL))