MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / inprec_recorddiskchange

Function inprec_recorddiskchange

src/inputrecord.cpp:733–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

731}
732
733void 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
756int inprec_getposition (void)
757{

Callers 3

disk.cppFile · 0.85
drive_ejectFunction · 0.85
savestate_captureFunction · 0.85

Calls 5

inprec_rstartFunction · 0.70
inprec_ru8Function · 0.70
inprec_rstrFunction · 0.70
write_logFunction · 0.70
inprec_rendFunction · 0.70

Tested by

no test coverage detected