]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.c
1. When click install button, if the USB stick already installed with Ventoy, then...
[Ventoy.git] / Ventoy2Disk / Ventoy2Disk / Ventoy2Disk.c
index 4c6f6096d5726358e20cbb44bc353dbd0e18fa9b..8767e3b61e07c2beddb800a240eb0db6b582efa1 100644 (file)
@@ -28,6 +28,7 @@ DWORD g_PhyDriveCount = 0;
 static int g_FilterRemovable = 0;\r
 int g_FilterUSB = 1;\r
 int g_ForceOperation = 1;\r
+int g_NoNeedInputYes = 0;\r
 int g_WriteImage = 0;\r
 \r
 int ParseCmdLineOption(LPSTR lpCmdLine)\r
@@ -51,6 +52,10 @@ int ParseCmdLineOption(LPSTR lpCmdLine)
         {\r
             g_ForceOperation = 1;\r
         }\r
+        else if (strncmp(__argv[i], "-Y", 2) == 0 || strncmp(__argv[i], "-y", 2) == 0)\r
+        {\r
+            g_NoNeedInputYes = 1;\r
+        }\r
     }\r
 \r
     GetCurrentDirectoryA(sizeof(cfgfile), cfgfile);\r