|
|
| version 1.1, 2004/06/06 15:33:09 | version 1.2, 2004/06/07 06:05:33 |
|---|---|
| Line 1 | Line 1 |
| #include "compiler.h" | #include "compiler.h" |
| #include "bmpdata.h" | |
| #include "parts.h" | #include "parts.h" |
| #include "dosio.h" | #include "dosio.h" |
| #include "fontmng.h" | #include "fontmng.h" |
| Line 144 void makev98font(const char *dirname, co | Line 143 void makev98font(const char *dirname, co |
| void *fnt; | void *fnt; |
| BYTE *ptr; | BYTE *ptr; |
| char filename[MAX_PATH]; | char path[MAX_PATH]; |
| FILEH fh; | FILEH fh; |
| BOOL r; | BOOL r; |
| Line 176 void makev98font(const char *dirname, co | Line 175 void makev98font(const char *dirname, co |
| patchextank(ptr, jis2bxx, 0x0b, 0x21, 0x5e); | patchextank(ptr, jis2bxx, 0x0b, 0x21, 0x5e); |
| patchextfnt(ptr, jis2cxx, 0x0c, 0x24, 0x4c); | patchextfnt(ptr, jis2cxx, 0x0c, 0x24, 0x4c); |
| file_cpyname(filename, dirname, sizeof(filename)); | file_cpyname(path, dirname, sizeof(path)); |
| file_setseparator(filename, sizeof(filename)); | file_setseparator(path, sizeof(path)); |
| file_catname(filename, fontrom, sizeof(filename)); | file_catname(path, fontrom, sizeof(path)); |
| fh = file_create(filename); | fh = file_create(path); |
| if (fh == FILEH_INVALID) { | if (fh == FILEH_INVALID) { |
| goto mfnt_err3; | goto mfnt_err3; |
| } | } |
| r = (file_write(fh, ptr, 288768) == 288768); | r = (file_write(fh, ptr, 288768) == 288768); |
| file_close(fh); | file_close(fh); |
| if (!r) { | if (!r) { |
| file_delete(filename); | file_delete(path); |
| } | } |
| mfnt_err3: | mfnt_err3: |