--- np2/pccore.h 2004/02/19 06:10:13 1.22 +++ np2/pccore.h 2004/03/22 05:38:47 1.25 @@ -8,7 +8,7 @@ enum { }; enum { - CPUMODE_8MHz = 0x20, + CPUMODE_8MHZ = 0x20, PCMODEL_VF = 0, PCMODEL_VM = 1, @@ -28,12 +28,6 @@ enum { }; -// これ ver0.75で別ファイルへ移動すること -typedef struct { - UINT8 keys; - UINT8 key[15]; -} _NKEYM, *NKEYM; - typedef struct { // エミュレート中によく参照される奴 UINT8 uPD72020; @@ -56,8 +50,6 @@ typedef struct { UINT8 usefd144; BYTE wait[6]; - _NKEYM userkey[2]; - // リセット時とかあんまり参照されない奴 char model[8]; UINT baseclock; @@ -132,6 +124,12 @@ typedef struct { UINT32 realclock; } PCCORE; +enum { + COREEVENT_SHUT = 0, + COREEVENT_RESET = 1, + COREEVENT_EXIT = 2 +}; + #ifdef __cplusplus extern "C" { @@ -159,6 +157,8 @@ void pccore_term(void); void pccore_reset(void); void pccore_exec(BOOL draw); +void pccore_postevent(UINT32 event); + #ifdef __cplusplus } #endif