-void PSUB::save_state(FILEIO* state_fio)
-{
- state_fio->FputUint32(STATE_VERSION);
- state_fio->FputInt32(this_device_id);
-
- cur_time.save_state((void *)state_fio);
- state_fio->FputInt32(time_register_id);
- state_fio->Fwrite(databuf, sizeof(databuf), 1);
- state_fio->FputInt32((int)(datap - &databuf[0][0]));
- state_fio->FputUint8(mode);
- state_fio->FputUint8(inbuf);
- state_fio->FputUint8(outbuf);
- state_fio->FputBool(ibf);
- state_fio->FputBool(obf);
- state_fio->FputInt32(cmdlen);
- state_fio->FputInt32(datalen);
- key_buf->save_state((void *)state_fio);
- state_fio->FputInt32(key_prev);
- state_fio->FputInt32(key_break);
- state_fio->FputBool(key_shift);
- state_fio->FputBool(key_ctrl);
- state_fio->FputBool(key_graph);
- state_fio->FputBool(key_caps_locked);
- state_fio->FputBool(key_kana_locked);
- state_fio->FputInt32(key_register_id);
- state_fio->FputBool(play);
- state_fio->FputBool(rec);
- state_fio->FputBool(eot);
- state_fio->FputBool(iei);
- state_fio->FputBool(intr);
- state_fio->FputUint32(intr_bit);
-}
-
-bool PSUB::load_state(FILEIO* state_fio)