mirror of
https://github.com/dockur/windows.git
synced 2026-08-24 07:39:00 +01:00
feat: Use removeState helper from base (#2127)
This commit is contained in:
+1
-1
@@ -1069,7 +1069,7 @@ supportsBootKey() {
|
||||
return 0 ;;
|
||||
esac
|
||||
|
||||
return 1
|
||||
return 0
|
||||
}
|
||||
|
||||
supportsXML() {
|
||||
|
||||
+3
-3
@@ -44,9 +44,9 @@ setMachine() {
|
||||
"win9"* | "winnt4" )
|
||||
|
||||
writeState "old" "pc" || return 1
|
||||
writeState "usb" "N" || return 1
|
||||
writeState "net" "pcnet" || return 1
|
||||
writeState "type" "auto" || return 1 ;;
|
||||
writeState "type" "auto" || return 1
|
||||
writeState "usb" "pci-ohci" || return 1 ;;
|
||||
|
||||
"win2k"* )
|
||||
|
||||
@@ -129,7 +129,7 @@ restoreMachine() {
|
||||
# Migrate existing WinXP installs to QEMU 10
|
||||
if [[ "${MACHINE,,}" == "pc-q35-2.10" ]]; then
|
||||
MACHINE=""
|
||||
rm -f -- "$(stateFile "old")"
|
||||
removeState "old" || return 1
|
||||
fi
|
||||
|
||||
[ -z "$MACHINE" ] && MACHINE="q35"
|
||||
|
||||
Reference in New Issue
Block a user