mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-08-27 16:01:14 +00:00
1. change icon from * to a lock icon
2. typo correct 3. misc update
This commit is contained in:
@@ -26,3 +26,13 @@ const TCHAR * GetString(enum STR_ID ID)
|
||||
{
|
||||
return g_cur_lang_data->MsgString[ID];
|
||||
};
|
||||
|
||||
static const UINT16 g_unicode_icon[UNICODE_BUTT][3] =
|
||||
{
|
||||
{ 0xD83D, 0xDD12, 0x0000 },
|
||||
};
|
||||
|
||||
const UINT16 * GetUnicodeIcon(icon)
|
||||
{
|
||||
return g_unicode_icon[icon];
|
||||
}
|
||||
|
@@ -125,4 +125,13 @@ const TCHAR * GetString(enum STR_ID ID);
|
||||
|
||||
#define _G(a) GetString(a)
|
||||
|
||||
typedef enum UNICODE_ICON
|
||||
{
|
||||
UNICODE_LOCK = 0,
|
||||
UNICODE_BUTT
|
||||
}UNICODE_ICON;
|
||||
|
||||
const UINT16 * GetUnicodeIcon(icon);
|
||||
#define _UICON(i) GetUnicodeIcon(i)
|
||||
|
||||
#endif
|
||||
|
@@ -1693,7 +1693,7 @@ int InstallVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive, int PartStyle)
|
||||
}
|
||||
|
||||
PROGRESS_BAR_SET_POS(PT_WRITE_STG1_IMG);
|
||||
Log("Writting Boot Image ............................. ");
|
||||
Log("Writing Boot Image ............................. ");
|
||||
if (WriteGrubStage1ToPhyDrive(hDrive, PartStyle) != 0)
|
||||
{
|
||||
Log("WriteGrubStage1ToPhyDrive failed.");
|
||||
@@ -1702,7 +1702,7 @@ int InstallVentoy2PhyDrive(PHY_DRIVE_INFO *pPhyDrive, int PartStyle)
|
||||
}
|
||||
|
||||
PROGRESS_BAR_SET_POS(PT_WRITE_PART_TABLE);
|
||||
Log("Writting Partition Table ........................ ");
|
||||
Log("Writing Partition Table ........................ ");
|
||||
SetFilePointer(hDrive, 0, NULL, FILE_BEGIN);
|
||||
|
||||
if (PartStyle)
|
||||
|
@@ -231,6 +231,6 @@ UINT32 VentoyCrc32(void *Buffer, UINT32 Length);
|
||||
liCurrentPosition.QuadPart = pos; \
|
||||
SetFilePointerEx(hDrive, liCurrentPosition, &liCurrentPosition, FILE_BEGIN)\
|
||||
|
||||
#define SECURE_ICON_STRING "*"
|
||||
#define SECURE_ICON_STRING _UICON(UNICODE_LOCK)
|
||||
|
||||
#endif
|
||||
|
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user