Only for VirtualBox.

This commit is contained in:
longpanda 2025-02-28 14:58:36 +08:00
parent 6034b25cba
commit 6fbc08cfcb

View File

@ -35,13 +35,11 @@ function ventoy_debug_pause {
function ventoy_max_resolution { function ventoy_max_resolution {
#Skip this for VM #Skip this for VirtualBox
smbios -t 1 -s 0x05 --set=system_product; smbios -t 1 -s 0x05 --set=system_product;
for vtPdt in "VMware" "VirtualBox"; then if vt_str_casebegin "$system_product" "VirtualBox"; then
if vt_str_casebegin "$system_product" "$vtPdt"; then
return return
fi fi
fi
vt_enum_video_mode vt_enum_video_mode
vt_get_video_mode 0 vtCurMode vt_get_video_mode 0 vtCurMode