]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Code Optimize
authorlongpanda <admin@ventoy.net>
Fri, 11 Dec 2020 23:40:33 +0000 (07:40 +0800)
committerlongpanda <admin@ventoy.net>
Fri, 11 Dec 2020 23:40:33 +0000 (07:40 +0800)
EDK2/efiffs/mod/grub/grub-core/fs/iso9660.c
EDK2/efiffs/mod/src/logging.c
GRUB2/MOD_SRC/grub-2.04/grub-core/boot/i386/pc/boot.S
README.md

index b691cd6dcd47a47dd4a7b0e386947bf4ff8809c5..bae3f6214454797df17903a8cf197d64b4bb7e33 100644 (file)
@@ -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 (!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.  */
 
        /* The filename was not stored in a rock ridge entry.  Read it
           from the iso9660 filesystem.  */
index 64d30f7d535d7fb2af00900e3a995d5ec5f949b7..83661349a0b3430a5feaecacc92f7d0843a1b4ed 100644 (file)
@@ -70,10 +70,10 @@ SetLogging(VOID)
        CHAR16 LogVar[4];
        UINTN i, LogVarSize = sizeof(LogVar);
 
        CHAR16 LogVar[4];
        UINTN i, LogVarSize = sizeof(LogVar);
 
-    i = LogVarSize;
+       i = LogVarSize;
        Status = RT->GetVariable(L"FS_NAME_NOCASE", &ShellVariable, NULL, &i, LogVar);
        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)
 
        Status = RT->GetVariable(L"FS_LOGGING", &ShellVariable, NULL, &LogVarSize, LogVar);
        if (Status == EFI_SUCCESS)
index 18c99b372a53d79e11283c6cf6972e2a69c089e1..bc544f783a1c1b60c14d4c3f8e985db3bacb8d28 100644 (file)
@@ -479,7 +479,7 @@ LOCAL(stop):
        jmp     LOCAL(stop)
 
 ventoy_uuid:   .ascii  "XXXXXXXXXXXXXXXX"
        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"
 geometry_error_string: .asciz "Ge"
 hd_probe_error_string: .asciz "HD"
 read_error_string:     .asciz "Rd"
index becd994357d096da8ca020c89c871cf9eceb4bc0..16307a568913362fbaea434d30a43b751fdfc46e 100644 (file)
--- a/README.md
+++ b/README.md
 <h4 align="left">
 Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files. <br/>
 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.   
 <h4 align="left">
 Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files. <br/>
 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. <br/> 
-Both Legacy BIOS and UEFI are supported in the same way.<br/>
+You can copy many image files at a time and ventoy will give you a boot menu to select them. <br/> 
+x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI and ARM64 UEFI are supported in the same way.<br/>
 Both MBR and GPT partition style are supported in the same way.<br/>
 Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...) <br/>
 Both MBR and GPT partition style are supported in the same way.<br/>
 Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...) <br/>
-560+ ISO files are tested. 90%+ distros in distrowatch.com supported. <br/>
+580+ ISO files are tested. 90%+ distros in distrowatch.com supported. <br/>
 </h4>
 
 # Features
 </h4>
 
 # Features
@@ -27,16 +27,16 @@ Most type of OS supported(Windows/WinPE/Linux/Unix/Vmware/Xen...) <br/>
 * 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+)
 * 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
 * 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
 * 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
 * "Ventoy Compatible" concept
 * Plugin Framework
 * Injection files to runtime enviroment