|
|
| version 1.1.1.1, 2003/10/16 17:59:40 | version 1.4, 2003/12/19 16:08:01 |
|---|---|
| Line 1 | Line 1 |
| #ifndef NP2_X11_DOSIO_H__ | |
| #define NP2_X11_DOSIO_H__ | |
| enum { // ver0.28 | enum { |
| FTYPE_NONE = 0, // ¼«Æ°È½ÊÌ or PC | FTYPE_NONE = 0, // ¥·¥©¥Ë¡¼¥Í¥¹¥Ï¥Õ or PC |
| FTYPE_SMIL, // ¥·¥¹¥Æ¥àͽÌó | FTYPE_SMIL, // ¡¦¥¡¦¥±¡¦¥Ë¡¦àÏ¥¹¥Õ+ FTYPE_TEXT, // ¥Æ¥¥¹¥È¥Õ¥¡¥¤¥ë |
| FTYPE_TEXT, // ¥Æ¥¥¹¥È¥Õ¥¡¥¤¥ë | FTYPE_BMP, // Bitmap |
| FTYPE_BMP, // Bitmap | FTYPE_PICT, // Picture (ͽÌó) |
| FTYPE_PICT, // Picture (ͽÌó) | FTYPE_PNG, // Png (ͽÌó) |
| FTYPE_PNG, // Png (ͽÌó) | FTYPE_WAV, // Wave |
| FTYPE_WAV, // Wave | FTYPE_D88, // D88 |
| FTYPE_D88, // D88 | FTYPE_BETA, // ¥Ù¥¿¥¤¥á¡¼¥¸ |
| FTYPE_BETA, // ¥Ù¥¿¥¤¥á¡¼¥¸ | FTYPE_THD, // .thd ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸ |
| FTYPE_THD, // .thd ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸ | FTYPE_HDI, // .hdi ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸ |
| FTYPE_HDI, // .hdi ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸ | FTYPE_HDD, // .hdd ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸ (ͽÌó) |
| FTYPE_HDD, // .hdd ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸ (ͽÌó) | FTYPE_S98, // .s98 ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸ |
| FTYPE_S98, // .s98 ¥Ï¡¼¥É¥Ç¥£¥¹¥¯¥¤¥á¡¼¥¸ | FTYPE_MIMPI // mimpi default¥Õ¥¡¥¤¥ë |
| FTYPE_MIMPI // mimpi default¥Õ¥¡¥¤¥ë | |
| }; | }; |
| typedef FILE * FILEH; | typedef FILE* FILEH; |
| #define FILEH_INVALID NULL | #define FILEH_INVALID NULL |
| typedef void* FILEFINDH; | |
| #define FILEFINDH_INVALID NULL | |
| #define FSEEK_SET SEEK_SET | #define FSEEK_SET SEEK_SET |
| #define FSEEK_CUR SEEK_CUR | #define FSEEK_CUR SEEK_CUR |
| #define FSEEK_END SEEK_END | #define FSEEK_END SEEK_END |
| enum { | enum { |
| FILEATTR_READONLY = 0x01, | FILEATTR_READONLY = 0x01, |
| Line 44 typedef struct { | Line 49 typedef struct { |
| BYTE second; /* dh */ | BYTE second; /* dh */ |
| } DOSTIME; | } DOSTIME; |
| typedef struct { | |
| char path[MAX_PATH]; | |
| UINT32 size; | |
| UINT32 attr; | |
| } FILEFINDT; | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| #endif | #endif |
| /* DOSIO:´Ø¿ô¤Î½àÈ÷ */ | /* DOSIO:¥¨¥ê¥½ô¤Î½àÈ*/ |
| void dosio_init(void); | void dosio_init(void); |
| void dosio_term(void); | void dosio_term(void); |
| /* ¥Õ¥¡¥¤¥ëÁàºî */ | /* ¡¦¥æ¡¦¡£¡¦¡¢¡¦öÃà¼*/ |
| FILEH file_open(const char *path); | FILEH file_open(const char *path); |
| FILEH file_open_rb(const char *path); | FILEH file_open_rb(const char *path); |
| FILEH file_create(const char *path); | FILEH file_create(const char *path); |
| Line 67 short file_delete(const char *path); | Line 78 short file_delete(const char *path); |
| short file_attr(const char *path); | short file_attr(const char *path); |
| short file_dircreate(const char *path); | short file_dircreate(const char *path); |
| /* ¥«¥ì¥ó¥È¥Õ¥¡¥¤¥ëÁàºî */ | /* ¡¦¥©¡¦ø§ó¥È¥Õ¥¡¥¤¥ëÁàº*/ |
| void file_setcd(const char *exepath); | void file_setcd(const char *exepath); |
| char *file_getcd(const char *sjis); | char *file_getcd(const char *sjis); |
| FILEH file_open_c(const char *sjis); | FILEH file_open_c(const char *sjis); |
| Line 76 FILEH file_create_c(const char *sjis); | Line 87 FILEH file_create_c(const char *sjis); |
| short file_delete_c(const char *sjis); | short file_delete_c(const char *sjis); |
| short file_attr_c(const char *sjis); | short file_attr_c(const char *sjis); |
| FILEFINDH file_find1st(const char *dir, FILEFINDT *fft); | |
| BOOL file_findnext(FILEFINDH hdl, FILEFINDT *fft); | |
| void file_findclose(FILEFINDH hdl); | |
| void file_cpyname(char *dst, const char *src, int maxlen); | void file_cpyname(char *dst, const char *src, int maxlen); |
| void file_catname(char *path, const char *sjis, int maxlen); | void file_catname(char *path, const char *sjis, int maxlen); |
| BOOL file_cmpname(char *path, const char *sjis); | BOOL file_cmpname(const char *path, const char *sjis); |
| char *file_getname(char *path); | char *file_getname(char *path); |
| void file_cutname(char *path); | void file_cutname(char *path); |
| char *file_getext(char *path); | char *file_getext(char *path); |
| Line 89 void file_setseparator(char *path, int m | Line 104 void file_setseparator(char *path, int m |
| #ifdef __cplusplus | #ifdef __cplusplus |
| }; | }; |
| #endif | #endif |
| #endif /* NP2_X11_DOSIO_H__ */ |