|
|
| version 1.16, 2004/02/16 05:31:31 | version 1.22, 2005/05/16 06:08:22 |
|---|---|
| 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 312 const INITBL *pterm; | Line 307 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 338 const INITBL *pterm; | Line 328 const INITBL *pterm; |
| extern int winx; | extern int winx; |
| extern int winy; | extern int winy; |
| #if !defined(SUPPORT_PC9821) | |
| static const char ini_title[] = "NekoProjectII"; | static const char ini_title[] = "NekoProjectII"; |
| static const char inifile[] = "np2.cfg"; | static const char inifile[] = "np2.cfg"; |
| #else | |
| static const char ini_title[] = "NekoProject21"; | |
| static const char inifile[] = "np21.cfg"; | |
| #endif | |
| static const INITBL iniitem[] = { | static const INITBL iniitem[] = { |
| {"np2title", INITYPE_STR, np2oscfg.titles, | {"np2title", INITYPE_STR, np2oscfg.titles, |
| Line 347 static const INITBL iniitem[] = { | Line 342 static const INITBL iniitem[] = { |
| {"WindposX", INITYPE_SINT32, &np2oscfg.winx, 0}, | {"WindposX", INITYPE_SINT32, &np2oscfg.winx, 0}, |
| {"WindposY", INITYPE_SINT32, &np2oscfg.winy, 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)}, |
| {"clk_base", INITYPE_SINT32, &np2cfg.baseclock, 0}, | {"clk_base", INITYPE_SINT32, &np2cfg.baseclock, 0}, |
| {"clk_mult", INITYPE_SINT32, &np2cfg.multiple, 0}, | {"clk_mult", INITYPE_SINT32, &np2cfg.multiple, 0}, |
| Line 423 static const INITBL iniitem[] = { | Line 418 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}, | {"mpu98map", INITYPE_STR, np2oscfg.mpu.mout, MAX_PATH}, |
| {"mpu98min", INITYPE_STR, np2oscfg.mpu.min, MAX_PATH}, | |
| {"mpu98mdl", INITYPE_STR, np2oscfg.mpu.mdl, 64}, | |
| {"mpu98def", INITYPE_STR, np2oscfg.mpu.def, MAX_PATH}, | |
| {"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 |
| #ifdef SUPPORT_KEYDISP | |
| {"keydispl", INITYPE_BOOL, &np2oscfg.keydisp, 0}, | |
| #endif | |
| #ifdef SUPPORT_SOFTKBD | |
| {"softkybd", INITYPE_BOOL, &np2oscfg.softkey, 0}, | |
| #endif | |
| {"jast_snd", INITYPE_BOOL, &np2oscfg.jastsnd, 0}, // ver0.73 | {"jast_snd", INITYPE_BOOL, &np2oscfg.jastsnd, 0}, // ver0.73 |
| {"I286SAVE", INITYPE_BOOL, &np2oscfg.I286SAVE, 0}}; | {"I286SAVE", INITYPE_BOOL, &np2oscfg.I286SAVE, 0}}; |