|
|
| version 1.9, 2003/11/15 07:10:03 | version 1.16, 2004/02/16 05:31:31 |
|---|---|
| Line 140 const INITBL *p; | Line 140 const INITBL *p; |
| case INITYPE_HEX32: | case INITYPE_HEX32: |
| *((UINT32 *)p->value) = (UINT32)milstr_solveHEX(data); | *((UINT32 *)p->value) = (UINT32)milstr_solveHEX(data); |
| break; | break; |
| case INITYPE_USERKEY: | |
| ((NKEYM)p->value)->keys = (UINT8)profile_setkeys(data, | |
| ((NKEYM)p->value)->key, 15); | |
| break; | |
| } | } |
| } | } |
| p++; | p++; |
| Line 307 const INITBL *pterm; | Line 312 const INITBL *pterm; |
| SPRINTF(work, "%x", *((UINT32 *)p->value)); | SPRINTF(work, "%x", *((UINT32 *)p->value)); |
| break; | break; |
| case INITYPE_USERKEY: | |
| profile_getkeys(work, sizeof(work), | |
| ((NKEYM)p->value)->key, ((NKEYM)p->value)->keys); | |
| break; | |
| default: | default: |
| set = FAILURE; | set = FAILURE; |
| break; | break; |
| Line 334 static const char inifile[] = "np2.cfg"; | Line 344 static const char inifile[] = "np2.cfg"; |
| static const INITBL iniitem[] = { | static const INITBL iniitem[] = { |
| {"np2title", INITYPE_STR, np2oscfg.titles, | {"np2title", INITYPE_STR, np2oscfg.titles, |
| sizeof(np2oscfg.titles)}, | sizeof(np2oscfg.titles)}, |
| {"WindposX", INITYPE_SINT32, &np2oscfg.winx, 0}, | |
| {"WindposY", INITYPE_SINT32, &np2oscfg.winy, 0}, | |
| {"pc_model", INITYPE_STR, &np2cfg.model, | {"pc_model", INITYPE_STR, &np2cfg.model, |
| sizeof(np2cfg.model)}, | sizeof(np2cfg.model)}, |
| Line 345 static const INITBL iniitem[] = { | Line 357 static const INITBL iniitem[] = { |
| {"ExMemory", INITYPE_UINT8, &np2cfg.EXTMEM, 0}, | {"ExMemory", INITYPE_UINT8, &np2cfg.EXTMEM, 0}, |
| {"ITF_WORK", INITYPE_BOOL, &np2cfg.ITF_WORK, 0}, | {"ITF_WORK", INITYPE_BOOL, &np2cfg.ITF_WORK, 0}, |
| {"HDD1FILE", INITYPE_STR, np2cfg.hddfile[0], MAX_PATH}, | {"HDD1FILE", INITYPE_STR, np2cfg.sasihdd[0], MAX_PATH}, |
| {"HDD2FILE", INITYPE_STR, np2cfg.hddfile[1], MAX_PATH}, | {"HDD2FILE", INITYPE_STR, np2cfg.sasihdd[1], MAX_PATH}, |
| #if defined(SUPPORT_SCSI) | |
| {"SCSIHDD0", INITYPE_STR, np2cfg.scsihdd[0], MAX_PATH}, | |
| {"SCSIHDD1", INITYPE_STR, np2cfg.scsihdd[1], MAX_PATH}, | |
| {"SCSIHDD2", INITYPE_STR, np2cfg.scsihdd[2], MAX_PATH}, | |
| {"SCSIHDD3", INITYPE_STR, np2cfg.scsihdd[3], MAX_PATH}, | |
| #endif | |
| {"fontfile", INITYPE_STR, np2cfg.fontfile, 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}, | {"SampleHz", INITYPE_UINT16, &np2cfg.samplingrate, 0}, |
| {"Latencys", INITYPE_UINT16, &np2cfg.delayms, 0}, | {"Latencys", INITYPE_UINT16, &np2cfg.delayms, 0}, |
| Line 374 static const INITBL iniitem[] = { | Line 395 static const INITBL iniitem[] = { |
| {"Seek_Snd", INITYPE_BOOL, &np2cfg.MOTOR, 0}, | {"Seek_Snd", INITYPE_BOOL, &np2cfg.MOTOR, 0}, |
| {"Seek_Vol", INITYPE_UINT8, &np2cfg.MOTORVOL, 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}, | {"btnRAPID", INITYPE_BOOL, &np2cfg.BTN_RAPID, 0}, |
| {"btn_MODE", INITYPE_BOOL, &np2cfg.BTN_MODE, 0}, | {"btn_MODE", INITYPE_BOOL, &np2cfg.BTN_MODE, 0}, |
| {"MS_RAPID", INITYPE_BOOL, &np2cfg.MOUSERAPID, 0}, | {"MS_RAPID", INITYPE_BOOL, &np2cfg.MOUSERAPID, 0}, |
| Line 401 static const INITBL iniitem[] = { | Line 423 static const INITBL iniitem[] = { |
| {"USE144FD", INITYPE_BOOL, &np2cfg.usefd144, 0}, | {"USE144FD", INITYPE_BOOL, &np2cfg.usefd144, 0}, |
| {"Mouse_sw", INITYPE_BOOL, &np2oscfg.MOUSE_SW, 0}, | {"Mouse_sw", INITYPE_BOOL, &np2oscfg.MOUSE_SW, 0}, |
| {"comfirm_", INITYPE_BOOL, &np2oscfg.comfirm, 0}, | {"comfirm_", INITYPE_BOOL, &np2oscfg.comfirm, 0}, |
| {"userkey1", INITYPE_USERKEY, np2cfg.userkey+0, 0}, | |
| {"userkey2", INITYPE_USERKEY, np2cfg.userkey+1, 0}, | |
| {"e_resume", INITYPE_BOOL, &np2oscfg.resume, 0}, // ver0.30 | {"e_resume", INITYPE_BOOL, &np2oscfg.resume, 0}, // ver0.30 |
| {"toolwind", INITYPE_BOOL, &np2oscfg.toolwin, 0}, // ver0.38 | {"toolwind", INITYPE_BOOL, &np2oscfg.toolwin, 0}, // ver0.38 |
| {"jast_snd", INITYPE_BOOL, &np2oscfg.jastsnd, 0}, // ver0.73 | |
| {"I286SAVE", INITYPE_BOOL, &np2oscfg.I286SAVE, 0}}; | {"I286SAVE", INITYPE_BOOL, &np2oscfg.I286SAVE, 0}}; |
| #define INIITEMS (sizeof(iniitem) / sizeof(INITBL)) | #define INIITEMS (sizeof(iniitem) / sizeof(INITBL)) |