uae: fix double eject

This commit is contained in:
feos 2024-12-22 17:51:59 +03:00
parent 0e300fc094
commit fcff79e794
1 changed files with 9 additions and 2 deletions

View File

@ -213,8 +213,15 @@ namespace BizHawk.Emulation.Cores.Computers.Amiga
if (!_ejectPressed)
{
fi.Action = LibUAE.DriveAction.EjectDisk;
CoreComm.Notify($"Ejected drive FD{_currentDrive}: {GetFullName(_roms[_driveSlots[_currentDrive]])}", _messageDuration);
_driveSlots[_currentDrive] = _driveNullOrEmpty;
if (_driveSlots[_currentDrive] == _driveNullOrEmpty)
{
CoreComm.Notify($"Drive FD{_currentDrive} is already empty!", _messageDuration);
}
else
{
CoreComm.Notify($"Ejected drive FD{_currentDrive}: {GetFullName(_roms[_driveSlots[_currentDrive]])}", _messageDuration);
_driveSlots[_currentDrive] = _driveNullOrEmpty;
}
}
}
else if (controller.IsPressed(Inputs.InsertDisk))