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

Function driveclick_insert

src/driveclick.cpp:494–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void driveclick_insert (int drive, int eject)
495{
496 if (!click_initialized)
497 return;
498 if (!driveclick_wave_initialized)
499 return;
500 if (!currprefs.floppyslots[drive].dfxclick)
501 return;
502 if (eject)
503 drv_has_spun[drive] = 0;
504 if (drv_has_disk[drive] == 0 && !eject)
505 dr_audio_activate ();
506 drv_has_disk[drive] = !eject;
507}
508
509void driveclick_check_prefs (void)
510{

Callers 3

disk.cppFile · 0.85
drive_ejectFunction · 0.85
driveclick_resetFunction · 0.85

Calls 1

dr_audio_activateFunction · 0.85

Tested by

no test coverage detected