diff --git a/Managers/UTMQemuSystem.m b/Managers/UTMQemuSystem.m index 1e1d4072c..8ee4afc80 100644 --- a/Managers/UTMQemuSystem.m +++ b/Managers/UTMQemuSystem.m @@ -312,9 +312,10 @@ - (void)argsForDrives { BOOL removable = (type == UTMDiskImageTypeCD) || [self.configuration driveRemovableForIndex:i]; NSString *identifier = [self.configuration driveNameForIndex:i]; NSString *realInterface = [self expandDriveInterface:interface identifier:identifier removable:removable busInterfaceMap:busInterfaceMap]; + BOOL floppy = [realInterface containsString:@"floppy"]; NSString *drive; [self pushArgv:@"-drive"]; - drive = [NSString stringWithFormat:@"if=%@,media=%@,id=%@", realInterface, removable ? @"cdrom" : @"disk", identifier]; + drive = [NSString stringWithFormat:@"if=%@,media=%@,id=%@", realInterface, (removable && !floppy) ? @"cdrom" : @"disk", identifier]; if (hasImage) { drive = [NSString stringWithFormat:@"%@,file=%@,cache=writethrough", drive, fullPathURL.path]; }