|
|
| version 1.9, 2004/01/22 01:10:05 | version 1.13, 2004/06/22 07:11:44 |
|---|---|
| Line 192 static void iniwrsetarg8(char *work, int | Line 192 static void iniwrsetarg8(char *work, int |
| } | } |
| } | } |
| static const UINT8 utf8hdr[3] = {0xef, 0xbb, 0xbf}; | |
| void ini_write(const char *path, const char *title, | void ini_write(const char *path, const char *title, |
| const INITBL *tbl, UINT count) { | const INITBL *tbl, UINT count) { |
| Line 205 const INITBL *pterm; | Line 208 const INITBL *pterm; |
| if (fh == FILEH_INVALID) { | if (fh == FILEH_INVALID) { |
| return; | return; |
| } | } |
| file_write(fh, utf8hdr, sizeof(utf8hdr)); | |
| 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\n", sizeof(work)); |
| Line 283 const INITBL *pterm; | Line 287 const INITBL *pterm; |
| // ---- | // ---- |
| #if defined(OSLANG_UTF8) | |
| static const char ini_title[] = "NekoProjectIICE"; | |
| static const char inifile[] = "np2ce.cfg"; | |
| #else | |
| static const char ini_title[] = "NekoProjectII"; | static const char ini_title[] = "NekoProjectII"; |
| static const char inifile[] = "np2.cfg"; | static const char inifile[] = "np2.cfg"; |
| #endif | |
| static const INITBL iniitem[] = { | static const INITBL iniitem[] = { |
| {"pc_model", INITYPE_STR, &np2cfg.model, | {"pc_model", INITYPE_STR, &np2cfg.model, |