Skip to content

Commit

Permalink
optimize for muli-language ini format
Browse files Browse the repository at this point in the history
  • Loading branch information
ventoy committed May 5, 2020
1 parent ce9c679 commit 835cb95
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Binary file modified INSTALL/Ventoy2Disk.exe
Binary file not shown.
Binary file modified LANGUAGES/languages.ini
Binary file not shown.
4 changes: 2 additions & 2 deletions Ventoy2Disk/Ventoy2Disk/Language.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ extern BOOL g_SecureBoot;
#define VENTOY_CFG_INI TEXT(".\\Ventoy2Disk.ini")
#define VENTOY_MAX_LANGUAGE 200

#define GET_INI_STRING(Key, Buf) GetPrivateProfileString(Language, Key, TEXT("#"), Buf, sizeof(Buf), VENTOY_LANGUAGE_INI)
#define GET_INI_STRING(Section, Key, Buf) GetPrivateProfileString(Section, Key, TEXT("#"), Buf, sizeof(Buf), VENTOY_LANGUAGE_INI)

typedef struct VENTOY_LANGUAGE
{
WCHAR Name[64];
WCHAR Name[128];
WCHAR FontFamily[64];
int FontSize;

Expand Down
Binary file modified Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.rc
Binary file not shown.
Binary file modified Ventoy2Disk/Ventoy2Disk/WinDialog.c
Binary file not shown.

0 comments on commit 835cb95

Please sign in to comment.