feat: Use removeState helper from base (#2127)

This commit is contained in:
Kroese
2026-08-10 11:36:13 +02:00
committed by GitHub
parent 9ef6f3c4ca
commit 0d7e26adad
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1069,7 +1069,7 @@ supportsBootKey() {
return 0 ;;
esac
return 1
return 0
}
supportsXML() {
+3 -3
View File
@@ -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"