mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-13 18:42:03 +08:00
启动器图标支持启动UEFI
This commit is contained in:
@@ -120,8 +120,16 @@ int qemu::OpenUSB(){
|
||||
return 0;
|
||||
}
|
||||
int qemu::EnabledUEFI(bool status){
|
||||
if(status){
|
||||
commandOption += "--bios /usr/share/qemu/OVMF.fd ";
|
||||
if(!status){
|
||||
return 0;
|
||||
}
|
||||
return 0;
|
||||
if(QFile::exists("/usr/share/qemu/OVMF.fd")){
|
||||
commandOption += "--bios /usr/share/qemu/OVMF.fd ";
|
||||
return 0;
|
||||
}
|
||||
if(QFile::exists(QCoreApplication::applicationDirPath() + "/OVMF.fd")){
|
||||
commandOption += "--bios '" + QCoreApplication::applicationDirPath() + "/OVMF.fd' ";
|
||||
return 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user