mirror of
https://github.com/ventoy/Ventoy.git
synced 2026-09-07 08:26:39 +00:00
1.0.09 release
This commit is contained in:
@@ -22,52 +22,6 @@
|
||||
#include "Ventoy2Disk.h"
|
||||
#include "Language.h"
|
||||
|
||||
const TCHAR * g_Str_English[STR_ID_MAX] =
|
||||
{
|
||||
TEXT("Error"),
|
||||
TEXT("Warning"),
|
||||
TEXT("Info"),
|
||||
TEXT("Please run under the correct directory!"),
|
||||
TEXT("Device"),
|
||||
TEXT("Ventoy At Local"),
|
||||
TEXT("Ventoy In Device"),
|
||||
TEXT("Status - READY"),
|
||||
TEXT("Install"),
|
||||
TEXT("Update"),
|
||||
TEXT("Upgrade operation is safe, ISO files will be unchanged.\r\nContinue?"),
|
||||
TEXT("The disk will be formatted and all the data will be lost.\r\nContinue?"),
|
||||
TEXT("The disk will be formatted and all the data will be lost.\r\nContinue? (Double Check)"),
|
||||
TEXT("Congratulations!\r\nVentoy has been successfully installed to the device."),
|
||||
TEXT("An error occurred during the installation. You can replug the USB and try again. Check log.txt for detail."),
|
||||
TEXT("Congratulations!\r\nVentoy has been successfully updated to the device."),
|
||||
TEXT("An error occurred during the update. You can replug the USB and try again. Check log.txt for detail."),
|
||||
|
||||
TEXT("A thread is running, please wait..."),
|
||||
};
|
||||
|
||||
const TCHAR * g_Str_ChineseSimple[STR_ID_MAX] =
|
||||
{
|
||||
TEXT("错误"),
|
||||
TEXT("警告"),
|
||||
TEXT("提醒"),
|
||||
TEXT("请在正确的目录下运行!"),
|
||||
TEXT("设备"),
|
||||
TEXT("安装包内 Ventoy 版本"),
|
||||
TEXT("设备内部 Ventoy 版本"),
|
||||
TEXT("状态 - 准备就绪"),
|
||||
TEXT("安装"),
|
||||
TEXT("升级"),
|
||||
TEXT("升级操作是安全的, ISO文件不会丢失\r\n是否继续?"),
|
||||
TEXT("磁盘会被格式化, 所有数据都会丢失!\r\n是否继续?"),
|
||||
TEXT("磁盘会被格式化, 所有数据都会丢失!\r\n再次确认是否继续?"),
|
||||
TEXT("恭喜你! Ventoy 已经成功安装到此设备中."),
|
||||
TEXT("安装 Ventoy 过程中发生错误. 你可以重新拔插一下U盘然后重试一次, 详细信息请查阅 log.txt 文件."),
|
||||
TEXT("恭喜你! 新版本的 Ventoy 已经成功更新到此设备中."),
|
||||
TEXT("更新 Ventoy 过程中遇到错误. 你可以重新拔插一下U盘然后重试一次, 详细信息请查阅 log.txt 文件."),
|
||||
|
||||
TEXT("当前有任务正在运行, 请等待..."),
|
||||
};
|
||||
|
||||
const TCHAR * GetString(enum STR_ID ID)
|
||||
{
|
||||
return g_cur_lang_data->MsgString[ID];
|
||||
|
||||
@@ -61,7 +61,8 @@ extern BOOL g_SecureBoot;
|
||||
|
||||
|
||||
#define VENTOY_LANGUAGE_INI TEXT(".\\ventoy\\languages.ini")
|
||||
#define VENTOY_CFG_INI TEXT(".\\Ventoy2Disk.ini")
|
||||
#define VENTOY_CFG_INI TEXT(".\\Ventoy2Disk.ini")
|
||||
#define VENTOY_CFG_INI_A ".\\Ventoy2Disk.ini"
|
||||
#define VENTOY_MAX_LANGUAGE 200
|
||||
|
||||
#define GET_INI_STRING(Section, Key, Buf) GetPrivateProfileString(Section, Key, TEXT("#"), Buf, sizeof(Buf), VENTOY_LANGUAGE_INI)
|
||||
|
||||
@@ -928,10 +928,19 @@ int VentoyProcSecureBoot(BOOL SecureBoot)
|
||||
Log("Open bootx64 efi file %p ", file);
|
||||
if (file)
|
||||
{
|
||||
fl_fwrite(filebuf, 1, size, file);
|
||||
if (filebuf)
|
||||
{
|
||||
fl_fwrite(filebuf, 1, size, file);
|
||||
}
|
||||
|
||||
fl_fflush(file);
|
||||
fl_fclose(file);
|
||||
}
|
||||
|
||||
if (filebuf)
|
||||
{
|
||||
free(filebuf);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user