diff --git a/Configuration/UTMConfiguration+Defaults.m b/Configuration/UTMConfiguration+Defaults.m index 2952f921d..238e9c115 100644 --- a/Configuration/UTMConfiguration+Defaults.m +++ b/Configuration/UTMConfiguration+Defaults.m @@ -55,6 +55,8 @@ - (void)loadDefaultsForTarget:(NSString *)target { self.shareClipboardEnabled = YES; } else if ([target isEqualToString:@"mac99"]) { self.soundEnabled = NO; + } else if ([target isEqualToString:@"isapc"]) { + self.inputLegacy = YES; // no USB support } NSString *machineProp = [UTMConfiguration defaultMachinePropertiesForTarget:target]; if (machineProp) { diff --git a/Managers/UTMQemuSystem.m b/Managers/UTMQemuSystem.m index a319b1d96..8bd559d7b 100644 --- a/Managers/UTMQemuSystem.m +++ b/Managers/UTMQemuSystem.m @@ -41,6 +41,7 @@ @interface UTMQemuSystem () @property (nonatomic, readonly) CPUCount emulatedCpuCount; @property (nonatomic, readonly) BOOL useHypervisor; @property (nonatomic, readonly) BOOL hasCustomBios; +@property (nonatomic, readonly) BOOL usbSupported; @end @@ -411,6 +412,10 @@ - (BOOL)hasCustomBios { return NO; } +- (BOOL)usbSupported { + return ![self.configuration.systemTarget isEqualToString:@"isapc"]; +} + - (NSString *)machineProperties { if (self.configuration.systemMachineProperties.length > 0) { return self.configuration.systemMachineProperties; // use specified properties @@ -482,7 +487,9 @@ - (void)argsFromConfiguration { } [self pushArgv:@"-name"]; [self pushArgv:self.configuration.name]; - [self argsForUsb]; + if (self.usbSupported) { + [self argsForUsb]; + } [self argsForDrives]; [self argsForNetwork]; if (self.snapshot) {