if [ "$grub_platform" = "pc" ]; then
insmod setkey
insmod regexp
- insmod video_fb
fi
function ventoy_pause {
}
function ventoy_load_menu_lang_file {
- vt_load_file_to_mem "auto" $vtoy_efi_part/grub/menu.tar.gz vtoy_menu_lang_mem
+ vt_load_file_to_mem "auto" $prefix/menu.tar.gz vtoy_menu_lang_mem
loopback vt_menu_tarfs mem:${vtoy_menu_lang_mem_addr}:size:${vtoy_menu_lang_mem_size}
}
#############################################################
#############################################################
-set VENTOY_VERSION="1.0.86"
+set VENTOY_VERSION="1.0.87"
#ACPI not compatible with Window7/8, so disable by default
set VTOY_PARAM_NO_ACPI=1
terminal_input serial console
terminal_output serial console
else
- if [ "$vtoy_res_fit" = "1" ]; then
+ if [ "$vtoy_gfxmode" = "max" ]; then
+ set gfxmode=1024x768
terminal_output gfxterm
- fi
+
+ vt_enum_video_mode
+ vt_get_video_mode 0 vtCurMode
+ terminal_output console
+ set gfxmode=$vtCurMode
+ terminal_output gfxterm
+ elif [ "$vtoy_res_fit" = "1" ]; then
+ terminal_output gfxterm
+ fi
if [ -n "$vtoy_theme" ]; then
vt_set_theme