File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 616
616
<property name =" cpu cores" code =" CpUc" type =" integer"
617
617
description =" Number of CPU cores (0 is the default for this host)." />
618
618
619
+ <property name =" audio" code =" AuDi" type =" boolean" description =" audio enabled" />
620
+
619
621
<property name =" directory shares" code =" DiRs"
620
622
description =" List of directory share configuration." >
621
623
<type type =" apple directory share configuration" list =" yes" />
649
651
<property name =" read only" code =" RdOy" type =" boolean" access =" r"
650
652
description =" Is this directory read-only?" />
651
653
</record-type >
652
-
654
+
653
655
<record-type name =" apple drive configuration" code =" ApEc" description =" Apple virtual existing drive configuration." >
654
656
<property name =" id" code =" ID " type =" text" access =" r"
655
657
description =" The unique identifier for this drive (if empty, a new drive will be created)." />
Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ extension UTMScriptingConfigImpl {
233
233
" networkInterfaces " : config. networks. enumerated ( ) . map ( { serializeAppleNetwork ( $1, index: $0) } ) ,
234
234
" serialPorts " : config. serials. enumerated ( ) . map ( { serializeAppleSerial ( $1, index: $0) } ) ,
235
235
" displays " : config. displays. map ( { serializeAppleDisplay ( $0) } ) ,
236
+ " audio " : config. virtualization. hasAudio
236
237
]
237
238
}
238
239
@@ -648,6 +649,10 @@ extension UTMScriptingConfigImpl {
648
649
if let displays = record [ " displays " ] as? [ [ AnyHashable : Any ] ] {
649
650
try updateAppleDisplays ( from: displays)
650
651
}
652
+
653
+ if let audio = record [ " audio " ] as? Bool {
654
+ config. virtualization. hasAudio = audio
655
+ }
651
656
}
652
657
653
658
private func updateAppleDirectoryShares( from records: [ [ AnyHashable : Any ] ] ) throws {
You can’t perform that action at this time.
0 commit comments