VTOY_JSON_FMT_SINT("invalid_config", g_sysinfo.invalid_config);
g_sysinfo.invalid_config = 0;
-
-
+
#if defined(_MSC_VER) || defined(WIN32)
VTOY_JSON_FMT_STRN("os", "windows");
#else
VTOY_JSON_FMT_BEGIN(pos, JSON_BUFFER, JSON_BUF_MAX);
VTOY_JSON_FMT_OBJ_BEGIN();
VTOY_JSON_FMT_SINT("status", 0);
+ VTOY_JSON_FMT_SINT("save_error", g_sysinfo.config_save_error);
+ g_sysinfo.config_save_error = 0;
VTOY_JSON_FMT_OBJ_END();
VTOY_JSON_FMT_END(pos);
if (ret)
{
vlog("Failed to write ventoy.json file.\n");
+ g_sysinfo.config_save_error = 1;
}
return 0;
"STR_SECURE_BOOT_DISABLE": "Disable",\r
"STR_SYNTAX_ERROR_TIP": "Syntax error detected in ventoy.json, so the configuration is not loaded!",\r
"STR_INVALID_CONFIG_TIP": "Invalid configuration detected in ventoy.json, so the configuration is not loaded!",\r
+ "STR_CONFIG_SAVE_ERROR_TIP": "Failed to write ventoy.json file. Check VentoyPlugson.log for more details!",\r
\r
"STR_XXX": "xxx"\r
};\r
"STR_SECURE_BOOT_DISABLE": "未开启",\r
"STR_SYNTAX_ERROR_TIP": "ventoy.json 文件中存在语法错误,配置未加载!",\r
"STR_INVALID_CONFIG_TIP": "ventoy.json 文件中存在错误配置,配置未加载!",\r
-\r
+ "STR_CONFIG_SAVE_ERROR_TIP": "ventoy.json 文件写入失败,详细信息请参考 VentoyPlugson.log 文件!",\r
\r
\r
"STR_XXX": "xxx"\r