diff --git a/VM-source/VirtualMachine.pro.user b/VM-source/VirtualMachine.pro.user index 681aa41..d728337 100644 --- a/VM-source/VirtualMachine.pro.user +++ b/VM-source/VirtualMachine.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId @@ -155,8 +155,9 @@ 2 - Qt4ProjectManager.Qt4RunConfiguration:/home/orangepi/Desktop/deep-wine-runner/VM-source/VirtualMachine.pro - /home/orangepi/Desktop/deep-wine-runner/VM-source/VirtualMachine.pro + VirtualMachine2 + Qt4ProjectManager.Qt4RunConfiguration:/home/orangepi/Desktop/windows-virtual-machine-installer-for-wine-runner/VirtualMachine.pro + /home/orangepi/Desktop/windows-virtual-machine-installer-for-wine-runner/VirtualMachine.pro false true true diff --git a/VM-source/buildvbox.cpp b/VM-source/buildvbox.cpp index 804ab1e..15caffb 100644 --- a/VM-source/buildvbox.cpp +++ b/VM-source/buildvbox.cpp @@ -147,6 +147,7 @@ buildvbox::buildvbox(QString isoPath, int id, int vm){ vm.EnabledUEFI(true); setISOAlready = 1; break; + } vm.CreateDiskControl(); //vm.CreateDiskControl("storage_controller_2"); diff --git a/VM-source/mainwindow.cpp b/VM-source/mainwindow.cpp index b735e47..df45498 100755 --- a/VM-source/mainwindow.cpp +++ b/VM-source/mainwindow.cpp @@ -212,6 +212,18 @@ void MainWindow::on_install_clicked() return; } break; + case 8: + if(ui->vmChooser->currentIndex() == 1){ + QMessageBox::warning(this, "提示", "VirtualBox 不支持该选项!"); + return; + } + break; + case 9: + if(ui->vmChooser->currentIndex() == 1){ + QMessageBox::warning(this, "提示", "VirtualBox 不支持该选项!"); + return; + } + break; default: if(ui->vmChooser->currentIndex() == 0 && QFile::exists(QDir::homePath() + "/.config/deepin-wine-runner/QEMU-EFI")){ QFile::remove(QDir::homePath() + "/.config/deepin-wine-runner/QEMU-EFI"); @@ -371,15 +383,12 @@ void MainWindow::on_actionVMTest_triggered() // 写入 disk 文件 QFile file(":/TestDisk/test.qcow2"); // 计算随机数 - //qsrand(QTime(0, 0, 0).secsTo(QTime::currentTime())); - //int number = qrand() % 1000; - //QFile writeFile("/tmp/indows-virtual-machine-installer-for-wine-runner-test-disk-" + QString::number(number) + ".qcow2"); QFile writeFile("/tmp/indows-virtual-machine-installer-for-wine-runner-test-disk.qcow2"); file.open(QIODevice::ReadOnly); writeFile.open(QIODevice::WriteOnly); writeFile.write(file.readAll()); file.close(); writeFile.close(); - system("qemu-system-i386 --hda /tmp/indows-virtual-machine-installer-for-wine-runner-test-disk.qcow2 > /tmp/windows-virtual-machine-installer-for-wine-runner-run.log 2>&1"); + system("qemu-system-i386 --hda /tmp/indows-virtual-machine-installer-for-wine-runner-test-disk.qcow2 -rtc base=localtime > /tmp/windows-virtual-machine-installer-for-wine-runner-run.log 2>&1"); }