| 731 | } |
| 732 | |
| 733 | void inprec_recorddiskchange (int nr, const TCHAR *fname, bool writeprotected) |
| 734 | { |
| 735 | if (savestate_state) |
| 736 | return; |
| 737 | if (input_record < INPREC_RECORD_NORMAL) |
| 738 | return; |
| 739 | if (fname && fname[0]) { |
| 740 | if (inprec_rstart (INPREC_DISKINSERT)) { |
| 741 | inprec_ru8 (nr); |
| 742 | inprec_ru8 (writeprotected ? 1 : 0); |
| 743 | inprec_rstr (fname); |
| 744 | write_log (_T("INPREC: disk insert %d '%s'\n"), nr, fname); |
| 745 | inprec_rend (); |
| 746 | } |
| 747 | } else { |
| 748 | if (inprec_rstart (INPREC_DISKREMOVE)) { |
| 749 | inprec_ru8 (nr); |
| 750 | write_log (_T("INPREC: disk eject %d\n"), nr); |
| 751 | inprec_rend (); |
| 752 | } |
| 753 | } |
| 754 | } |
| 755 | |
| 756 | int inprec_getposition (void) |
| 757 | { |
no test coverage detected