|
|
| version 1.7, 2005/02/04 06:42:07 | version 1.8, 2008/06/02 20:07:30 |
|---|---|
| Line 15 | Line 15 |
| #include "palettes.h" | #include "palettes.h" |
| #include "makescrn.h" | #include "makescrn.h" |
| #include "sound.h" | #include "sound.h" |
| // #include "sndctrl.h" | |
| // #include "font.h" | |
| #include "fddfile.h" | #include "fddfile.h" |
| // #include "fdd_mtr.h" | |
| #if defined(MACOS) | #if defined(MACOS) |
| #define CRCONST str_cr | #define CRCONST str_cr |
| Line 64 typedef struct { | Line 60 typedef struct { |
| #include "statsave.tbl" | #include "statsave.tbl" |
| // ---- | /* ---- */ |
| // 関数ポインタを intに変更。 | /* 関数ポインタを intに変更。 */ |
| static UINT32 proc2id(INTPTR func, const PROCTBL *tbl, UINT count) { | static UINT32 proc2id(INTPTR func, const PROCTBL *tbl, UINT count) { |
| while(count) { | while(count) { |
| Line 92 static INTPTR id2proc(UINT32 id, const P | Line 88 static INTPTR id2proc(UINT32 id, const P |
| } | } |
| // ---- | /* ---- */ |
| enum { | enum { |
| SFFILEH_WRITE = 0x0001, | SFFILEH_WRITE = 0x0001, |
| Line 324 void statflag_seterr(STFLAGH sfh, const | Line 320 void statflag_seterr(STFLAGH sfh, const |
| } | } |
| // ---- common | /* common */ |
| static int flagsave_common(STFLAGH sfh, const SFENTRY *tbl) { | static int flagsave_common(STFLAGH sfh, const SFENTRY *tbl) { |
| Line 337 static int flagload_common(STFLAGH sfh, | Line 333 static int flagload_common(STFLAGH sfh, |
| } | } |
| // ---- event | /* event */ |
| typedef struct { | typedef struct { |
| UINT32 next; | UINT32 next; |
| Line 376 static NEVENTITEM id2evt(UINT32 n) { | Line 372 static NEVENTITEM id2evt(UINT32 n) { |
| return(nevent.item + n); | return(nevent.item + n); |
| } | } |
| else { | else { |
| // error! | /* error! */ |
| return(NEVENTITEM_TERM); | return(NEVENTITEM_TERM); |
| } | } |
| } | } |
| Line 419 static int flagload_evt(STFLAGH sfh, con | Line 415 static int flagload_evt(STFLAGH sfh, con |
| } | } |
| // ---- disk | /* disk */ |
| typedef struct { | typedef struct { |
| OEMCHAR fname[MAX_PATH]; | OEMCHAR fname[MAX_PATH]; |
| Line 529 static int flagload_disk(STFLAGH sfh, co | Line 525 static int flagload_disk(STFLAGH sfh, co |
| } | } |
| // ---- | /* checker */ |
| static int flagcheck_versize(STFLAGH sfh, const SFENTRY *tbl) { | static int flagcheck_versize(STFLAGH sfh, const SFENTRY *tbl) { |
| Line 548 static int flagcheck_veronly(STFLAGH sfh | Line 544 static int flagcheck_veronly(STFLAGH sfh |
| } | } |
| // ---- | /* interface */ |
| int statsave_save(const OEMCHAR *filename) { | int statsave_save(const OEMCHAR *filename) { |
| Line 656 const SFENTRY *tblterm; | Line 652 const SFENTRY *tblterm; |
| return(STATFLAG_FAILURE); | return(STATFLAG_FAILURE); |
| } | } |
| // PCCORE read! | /* PCCORE read! */ |
| ret = statflag_readsection(sffh); | ret = statflag_readsection(sffh); |
| if ((ret != STATFLAG_SUCCESS) || | if ((ret != STATFLAG_SUCCESS) || |
| (memcmp(sffh->sfh.hdr.index, xmiltbl[0].index, 10))) { | (memcmp(sffh->sfh.hdr.index, xmiltbl[0].index, 10))) { |