From 2936666a78aa6a9db8e1f489d6de6900c151cae3 Mon Sep 17 00:00:00 2001 From: longpanda Date: Sat, 12 Dec 2020 07:40:33 +0800 Subject: [PATCH] Code Optimize --- EDK2/efiffs/mod/grub/grub-core/fs/iso9660.c | 4 ++-- EDK2/efiffs/mod/src/logging.c | 6 +++--- .../MOD_SRC/grub-2.04/grub-core/boot/i386/pc/boot.S | 2 +- README.md | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/EDK2/efiffs/mod/grub/grub-core/fs/iso9660.c b/EDK2/efiffs/mod/grub/grub-core/fs/iso9660.c index b691cd6d..bae3f621 100644 --- a/EDK2/efiffs/mod/grub/grub-core/fs/iso9660.c +++ b/EDK2/efiffs/mod/grub/grub-core/fs/iso9660.c @@ -743,8 +743,8 @@ grub_iso9660_iterate_dir (grub_fshelp_node_t dir, if (!ctx.filename && dirent.namelen == 1 && name[0] == 1) ctx.filename = (char *) ".."; - if (g_fs_name_nocase) - ctx.type |= GRUB_FSHELP_CASE_INSENSITIVE; + if (g_fs_name_nocase) + ctx.type |= GRUB_FSHELP_CASE_INSENSITIVE; /* The filename was not stored in a rock ridge entry. Read it from the iso9660 filesystem. */ diff --git a/EDK2/efiffs/mod/src/logging.c b/EDK2/efiffs/mod/src/logging.c index 64d30f7d..83661349 100644 --- a/EDK2/efiffs/mod/src/logging.c +++ b/EDK2/efiffs/mod/src/logging.c @@ -70,10 +70,10 @@ SetLogging(VOID) CHAR16 LogVar[4]; UINTN i, LogVarSize = sizeof(LogVar); - i = LogVarSize; + i = LogVarSize; Status = RT->GetVariable(L"FS_NAME_NOCASE", &ShellVariable, NULL, &i, LogVar); - if (Status == EFI_SUCCESS) - g_fs_name_nocase = 1; + if (Status == EFI_SUCCESS) + g_fs_name_nocase = 1; Status = RT->GetVariable(L"FS_LOGGING", &ShellVariable, NULL, &LogVarSize, LogVar); if (Status == EFI_SUCCESS) diff --git a/GRUB2/MOD_SRC/grub-2.04/grub-core/boot/i386/pc/boot.S b/GRUB2/MOD_SRC/grub-2.04/grub-core/boot/i386/pc/boot.S index 18c99b37..bc544f78 100644 --- a/GRUB2/MOD_SRC/grub-2.04/grub-core/boot/i386/pc/boot.S +++ b/GRUB2/MOD_SRC/grub-2.04/grub-core/boot/i386/pc/boot.S @@ -479,7 +479,7 @@ LOCAL(stop): jmp LOCAL(stop) ventoy_uuid: .ascii "XXXXXXXXXXXXXXXX" -notification_string: .asciz "GR" +notification_string: .asciz "VT" geometry_error_string: .asciz "Ge" hd_probe_error_string: .asciz "HD" read_error_string: .asciz "Rd" diff --git a/README.md b/README.md index becd9943..16307a56 100644 --- a/README.md +++ b/README.md @@ -12,11 +12,11 @@

Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files.
With ventoy, you don't need to format the disk over and over, you just need to copy the image files to the USB drive and boot it. -You can copy many iso files at a time and ventoy will give you a boot menu to select them.
-Both Legacy BIOS and UEFI are supported in the same way.
+You can copy many image files at a time and ventoy will give you a boot menu to select them.
+x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI and ARM64 UEFI are supported in the same way.
Both MBR and GPT partition style are supported in the same way.
Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...)
-560+ ISO files are tested. 90%+ distros in distrowatch.com supported.
+580+ ISO files are tested. 90%+ distros in distrowatch.com supported.

# Features @@ -27,16 +27,16 @@ Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...)
* Directly boot from ISO/WIM/IMG/VHD(x)/EFI files, no extraction needed * No need to be continuous in disk for ISO/IMG files * MBR and GPT partition style supported (1.0.15+) -* Legacy + UEFI supported in the same way +* x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI, ARM64 UEFI supported * UEFI Secure Boot supported (1.0.07+) * Persistence supported (1.0.11+) * Windows/Linux auto installation supported (1.0.09+) * ISO files larger than 4GB supported * Native boot menu style for Legacy & UEFI -* Most type of OS supported, 560+ iso files tested +* Most type of OS supported, 580+ iso files tested * Linux vDisk boot supported * Not only boot but also complete installation process -* ISO files can be listed in List mode/TreeView mode +* Menu can be switched between List mode and TreeView mode dynamically * "Ventoy Compatible" concept * Plugin Framework * Injection files to runtime enviroment