优化wine下载器

This commit is contained in:
2023-04-05 16:09:58 +08:00
parent ba91aae7e1
commit 05c297647e
14 changed files with 66 additions and 36 deletions

View File

@@ -1,3 +1,6 @@
/*
* gfdgd xi、为什么您不喜欢熊出没和阿布呢
*/
#include "qemu.h"
#include <QDir>
#include <QFile>
@@ -30,7 +33,7 @@ int qemu::CreateDisk(QString path, int size){
if(QFile::exists(path)){
return 0;
}
return system(("qemu-img create '" + path + "' " + QString::number(size) + "M").toLatin1());
return system(("qemu-img create -f qcow2 '" + path + "' " + QString::number(size) + "M").toLatin1());
}
int qemu::CreateDiskControl(QString controlName){
return 0;