Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
3e47f5e8
Commit
3e47f5e8
authored
Jun 09, 2021
by
longpanda
Browse files
Fix a bug about ventoy version message position when VTOY_DEFAULT_IMG is set to F6>xxx
parent
b5eb3472
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
+6
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
+8
-8
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
View file @
3e47f5e8
...
...
@@ -1047,5 +1047,11 @@ int ventoy_chain_file_read(const char *path, int offset, int len, void *buf);
#define vtoy_theme_random_boot_day 1
#define vtoy_theme_random_boot_month 2
#define ventoy_env_export(env, name) \
{\
grub_env_set((env), (name));\
grub_env_export(env);\
}
#endif
/* __VENTOY_DEF_H__ */
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
View file @
3e47f5e8
...
...
@@ -304,7 +304,7 @@ static int ventoy_plugin_theme_entry(VTOY_JSON *json, const char *isodisk)
}
debug
(
"vtoy_theme %s
\n
"
,
filepath
);
grub_env_se
t
(
"vtoy_theme"
,
filepath
);
ventoy_env_expor
t
(
"vtoy_theme"
,
filepath
);
grub_snprintf
(
g_theme_single_file
,
sizeof
(
g_theme_single_file
),
"%s"
,
filepath
);
}
else
...
...
@@ -346,7 +346,7 @@ static int ventoy_plugin_theme_entry(VTOY_JSON *json, const char *isodisk)
}
}
grub_env_se
t
(
"vtoy_theme"
,
"random"
);
ventoy_env_expor
t
(
"vtoy_theme"
,
"random"
);
value
=
vtoy_json_get_string_ex
(
json
->
pstChild
,
"random"
);
if
(
value
)
{
...
...
@@ -370,39 +370,39 @@ static int ventoy_plugin_theme_entry(VTOY_JSON *json, const char *isodisk)
if
(
value
)
{
debug
(
"vtoy_gfxmode %s
\n
"
,
value
);
grub_env_se
t
(
"vtoy_gfxmode"
,
value
);
ventoy_env_expor
t
(
"vtoy_gfxmode"
,
value
);
}
value
=
vtoy_json_get_string_ex
(
json
->
pstChild
,
"display_mode"
);
if
(
value
)
{
debug
(
"display_mode %s
\n
"
,
value
);
grub_env_se
t
(
"vtoy_display_mode"
,
value
);
ventoy_env_expor
t
(
"vtoy_display_mode"
,
value
);
}
value
=
vtoy_json_get_string_ex
(
json
->
pstChild
,
"serial_param"
);
if
(
value
)
{
debug
(
"serial_param %s
\n
"
,
value
);
grub_env_se
t
(
"vtoy_serial_param"
,
value
);
ventoy_env_expor
t
(
"vtoy_serial_param"
,
value
);
}
value
=
vtoy_json_get_string_ex
(
json
->
pstChild
,
"ventoy_left"
);
if
(
value
)
{
grub_env_se
t
(
"VTLE_LFT"
,
value
);
ventoy_env_expor
t
(
"VTLE_LFT"
,
value
);
}
value
=
vtoy_json_get_string_ex
(
json
->
pstChild
,
"ventoy_top"
);
if
(
value
)
{
grub_env_se
t
(
"VTLE_TOP"
,
value
);
ventoy_env_expor
t
(
"VTLE_TOP"
,
value
);
}
value
=
vtoy_json_get_string_ex
(
json
->
pstChild
,
"ventoy_color"
);
if
(
value
)
{
grub_env_se
t
(
"VTLE_CLR"
,
value
);
ventoy_env_expor
t
(
"VTLE_CLR"
,
value
);
}
node
=
vtoy_json_find_item
(
json
->
pstChild
,
JSON_TYPE_ARRAY
,
"fonts"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment