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