]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
optimize for muli-language ini format
authorlongpanda <admin@ventoy.net>
Tue, 5 May 2020 10:48:45 +0000 (18:48 +0800)
committerlongpanda <admin@ventoy.net>
Tue, 5 May 2020 10:49:18 +0000 (18:49 +0800)
INSTALL/Ventoy2Disk.exe
LANGUAGES/languages.ini
Ventoy2Disk/Ventoy2Disk/Language.h
Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.rc
Ventoy2Disk/Ventoy2Disk/WinDialog.c

index a30726ed51f7d4fc4a16cad1727edbd03d898ec4..f3f3ca486ce4e4ca617e554f7defd3da86393b0f 100644 (file)
Binary files a/INSTALL/Ventoy2Disk.exe and b/INSTALL/Ventoy2Disk.exe differ
index da8b5e12b8e650e5dd12921eefb8ff0ec4835f80..7f95c7014f14fad46e9713bdcf2bbbfba8e37874 100644 (file)
Binary files a/LANGUAGES/languages.ini and b/LANGUAGES/languages.ini differ
index 01eddd666bb7d422cef05543d687eb55625e3e85..2a4a6b3d9682c977ba23fe68da8898a356a68d4b 100644 (file)
@@ -64,11 +64,11 @@ extern BOOL g_SecureBoot;
 #define VENTOY_CFG_INI  TEXT(".\\Ventoy2Disk.ini")
 #define VENTOY_MAX_LANGUAGE     200
 
 #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
 {
 
 typedef struct VENTOY_LANGUAGE
 {
-       WCHAR Name[64];
+       WCHAR Name[128];
        WCHAR FontFamily[64];
        int FontSize;
 
        WCHAR FontFamily[64];
        int FontSize;
 
index 698098564dedd7a575c099c874b2185cde52263c..8dbf2a1039c575ad3ac728ab5521818e8e1d35e9 100644 (file)
Binary files a/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.rc and b/Ventoy2Disk/Ventoy2Disk/Ventoy2Disk.rc differ
index c2535603574c4dd1f3b6408cefb6a46f0fd8a635..f59276b3585d6ec3114d71a32da5608f31514bae 100644 (file)
Binary files a/Ventoy2Disk/Ventoy2Disk/WinDialog.c and b/Ventoy2Disk/Ventoy2Disk/WinDialog.c differ