|
|
| version 1.1, 2003/10/23 07:20:43 | version 1.3, 2003/11/06 01:58:36 |
|---|---|
| Line 207 const INITBL *pterm; | Line 207 const INITBL *pterm; |
| } | } |
| milstr_ncpy(work, "[", sizeof(work)); | milstr_ncpy(work, "[", sizeof(work)); |
| milstr_ncat(work, title, sizeof(work)); | milstr_ncat(work, title, sizeof(work)); |
| milstr_ncat(work, "]\r\n", sizeof(work)); | milstr_ncat(work, "]\r", sizeof(work)); |
| file_write(fh, work, strlen(work)); | file_write(fh, work, strlen(work)); |
| p = tbl; | p = tbl; |
| Line 273 const INITBL *pterm; | Line 273 const INITBL *pterm; |
| file_write(fh, p->item, strlen(p->item)); | file_write(fh, p->item, strlen(p->item)); |
| file_write(fh, " = ", 3); | file_write(fh, " = ", 3); |
| file_write(fh, work, strlen(work)); | file_write(fh, work, strlen(work)); |
| file_write(fh, "\r\n", 2); | file_write(fh, "\r", 1); |
| } | } |
| p++; | p++; |
| } | } |
| Line 352 static const INITBL iniitem[] = { | Line 352 static const INITBL iniitem[] = { |
| {"pc9861_j", INITYPE_BYTEARG, np2cfg.pc9861jmp, 6}, | {"pc9861_j", INITYPE_BYTEARG, np2cfg.pc9861jmp, 6}, |
| {"calendar", INITYPE_BOOL, &np2cfg.calendar, 0}, | {"calendar", INITYPE_BOOL, &np2cfg.calendar, 0}, |
| {"USE144FD", INITYPE_BOOL, &np2cfg.usefd144, 0}, | {"USE144FD", INITYPE_BOOL, &np2cfg.usefd144, 0}, |
| {"e_resume", INITYPE_BOOL, &np2oscfg.resume, 0}, | |
| {"I286SAVE", INITYPE_BOOL, &np2oscfg.I286SAVE, 0}}; | {"I286SAVE", INITYPE_BOOL, &np2oscfg.I286SAVE, 0}}; |
| #define INIITEMS (sizeof(iniitem) / sizeof(INITBL)) | #define INIITEMS (sizeof(iniitem) / sizeof(INITBL)) |
| Line 361 void initload(void) { | Line 362 void initload(void) { |
| char path[MAX_PATH]; | char path[MAX_PATH]; |
| milstr_ncpy(path, file_getcd(inifile), sizeof(path)); | file_cpyname(path, file_getcd(inifile), sizeof(path)); |
| ini_read(path, ini_title, iniitem, INIITEMS); | ini_read(path, ini_title, iniitem, INIITEMS); |
| } | } |
| Line 369 void initsave(void) { | Line 370 void initsave(void) { |
| char path[MAX_PATH]; | char path[MAX_PATH]; |
| milstr_ncpy(path, file_getcd(inifile), sizeof(path)); | file_cpyname(path, file_getcd(inifile), sizeof(path)); |
| ini_write(path, ini_title, iniitem, INIITEMS); | ini_write(path, ini_title, iniitem, INIITEMS); |
| } | } |