mirror of
https://github.com/WorldObservationLog/AppleMusicDecrypt.git
synced 2026-01-15 14:22:54 -03:00
feat: custom cpu model
This commit is contained in:
@@ -14,6 +14,7 @@ enable = false
|
||||
# For Linux users, run `sudo kvm-ok` to check if KVM supported
|
||||
enableHardwareAcceleration = false
|
||||
memorySize = "512M"
|
||||
cpuModel = "Cascadelake-Server-v5"
|
||||
# Waiting time for wrapper-manager to start
|
||||
timeout = 80
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@ class LocalInstance(BaseModel):
|
||||
enable: bool = False
|
||||
enableHardwareAcceleration: bool = True
|
||||
memorySize: str = "512M"
|
||||
cpuModel: str = "Cascadelake-Server-v5"
|
||||
timeout: int = 30
|
||||
|
||||
|
||||
|
||||
@@ -10,10 +10,10 @@ from creart import it
|
||||
from src.config import Config
|
||||
from src.logger import GlobalLogger
|
||||
|
||||
ARGUMENTS = ["qemu-system-x86_64", "-machine q35", "-cpu Skylake-Server-v5", f"-m {it(Config).localInstance.memorySize}",
|
||||
"-display none", "-hda assets/wrapper-manager.qcow2", "-device virtio-net-pci,netdev=net0",
|
||||
"-netdev user,id=net0,hostfwd=tcp:127.0.0.1:32767-:32767"]
|
||||
HWACCEL_WIN = "-accel whpx,kernel-irqchip=off"
|
||||
ARGUMENTS = ["qemu-system-x86_64", "-machine q35", f"-cpu {it(Config).localInstance.cpuModel}",
|
||||
f"-m {it(Config).localInstance.memorySize}", "-display none", "-hda assets/wrapper-manager.qcow2",
|
||||
"-device virtio-net-pci,netdev=net0", "-netdev user,id=net0,hostfwd=tcp:127.0.0.1:32767-:32767"]
|
||||
HWACCEL_WIN = "-accel whpx"
|
||||
HWACCEL_LINUX = "-accel kvm"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user