Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mod Ventoy Menu Tip Plugin(Design ventoy ventoy 1.0.72)
#3
Hints tip1...tip7 are used only in the version 1.0.72 modified by me. If you want, I can redo it for version 1.0.74, or wait for the next release to be released and redo it there.
You can add any number of hints.There are a lot of modified files themselves.

To take advantage of this change, you need to download the modified file. Or ask longpanda to make such changes in its code.
Or try programming yourself. In order to learn how to change someone else's code yourself, you need to figure out how it works.
For example, to change the number of hints:
1. Add to the ventoy_def.h file:
const char *tip3;
const char *tip4;
const char *tip5;
const char *tip6;
const char *tip7;
2. 1. Add to the plugin.c:
grub_snprintf(node->tip3, 254, "%s", tip);
}
tip = vtoy_json_get_string_ex(pNode->pstChild, "tip4");
if (tip)
{
grub_snprintf(node->tip4, 254, "%s", tip);
}
tip = vtoy_json_get_string_ex(pNode->pstChild, "tip5");
if (tip)
{
grub_snprintf(node->tip5, 254, "%s", tip);
}
tip = vtoy_json_get_string_ex(pNode->pstChild, "tip6");
if (tip)
{
grub_snprintf(node->tip6, 254, "%s", tip);
}
tip = vtoy_json_get_string_ex(pNode->pstChild, "tip7");
if (tip)
{
grub_snprintf(node->tip7, 254, "%s", tip);
}
3. 1. Add to the ventoy_cmd.c:
img->tip3 = tip->tip3;
img->tip4 = tip->tip4;
img->tip5 = tip->tip5;
img->tip6 = tip->tip6;
img->tip7 = tip->tip7;
4. And so on for about 7 files...

Для chymax3m. Что-бы был русский язык в меню надо по-русски написать в плагине "menu_alias" файла "ventoy.json":
"menu_alias": [
{
"dir": "/ISO/Antivirus",
"alias": "[антивирусники]"
},
{
"dir": "/ISO/sistem utilit",
"alias": "[работа с HDD,ssd,flash...]"
},
{
"dir": "/ISO/multiboot",
"alias": "[загрузчики]"
},
....

Это всё касается любой версии ventoy оригинальной или мода.
Reply


Messages In This Thread
RE: mod Ventoy Menu Tip Plugin(Design ventoy ventoy 1.0.72) - by AlexBryansk - 05-29-2022, 08:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)