]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/src/Web/ventoy_http.h
Hotkey change:
[Ventoy.git] / Plugson / src / Web / ventoy_http.h
index 4a75196d1eebfc64a9c43ddc065ba052744c1b8c..27b7508f6df965cab96f78880df9faea7624a6a4 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <civetweb.h>
 
-#define MAX_LANGUAGE  128
+#define MAX_LANGUAGE  256
 
 #define L1 "    "
 #define L2 "        "
@@ -79,10 +79,12 @@ typedef struct data_control
     int secondary_menu_timeout;
     int linux_remount;
     int secondary_menu;
+    int password_asterisk;
     char default_search_root[MAX_PATH];
     char default_image[MAX_PATH];
     char default_kbd_layout[32];
     char help_text_language[32];
+    char menu_language[32];
 }data_control;
 
 #define display_mode_gui            0
@@ -402,9 +404,11 @@ else\
     } \
 }
 
-#define CONTROL_PARSE_INT(node, val) \
+#define CONTROL_PARSE_INT_DEF_0(node, val) \
     if (node->unData.pcStrVal[0] == '1') val = 1
 
+#define CONTROL_PARSE_INT_DEF_1(node, val) \
+    if (node->unData.pcStrVal[0] == '0') val = 0
 
 #define VTOY_JSON_INT(key, val) vtoy_json_get_int(json, key, &val)
 #define VTOY_JSON_STR(key, buf) vtoy_json_get_string(json, key, sizeof(buf), buf)