From: longpanda Date: Tue, 5 May 2020 10:48:45 +0000 (+0800) Subject: optimize for muli-language ini format X-Git-Tag: v1.0.09~7 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/835cb958ed93f4ea959ae9e0000aa1328e78d241?ds=inline optimize for muli-language ini format --- diff --git a/INSTALL/Ventoy2Disk.exe b/INSTALL/Ventoy2Disk.exe index a30726e..f3f3ca4 100644 Binary files a/INSTALL/Ventoy2Disk.exe and b/INSTALL/Ventoy2Disk.exe differ diff --git a/LANGUAGES/languages.ini b/LANGUAGES/languages.ini index da8b5e1..7f95c70 100644 Binary files a/LANGUAGES/languages.ini and b/LANGUAGES/languages.ini differ diff --git a/Ventoy2Disk/Ventoy2Disk/Language.h b/Ventoy2Disk/Ventoy2Disk/Language.h index 01eddd6..2a4a6b3 100644 --- a/Ventoy2Disk/Ventoy2Disk/Language.h +++ b/Ventoy2Disk/Ventoy2Disk/Language.h @@ -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; diff --git a/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.rc b/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.rc index 6980985..8dbf2a1 100644 Binary files a/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.rc and b/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.rc differ diff --git a/Ventoy2Disk/Ventoy2Disk/WinDialog.c b/Ventoy2Disk/Ventoy2Disk/WinDialog.c index c253560..f59276b 100644 Binary files a/Ventoy2Disk/Ventoy2Disk/WinDialog.c and b/Ventoy2Disk/Ventoy2Disk/WinDialog.c differ