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
6ae8bf84
Commit
6ae8bf84
authored
Mar 08, 2022
by
longpanda
Browse files
Suppress the Fn hotkey when VTOY_DEFAULT_IMAGE is already Fn>xxx
parent
ce862da4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
+15
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
+1
-0
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_cmd.c
View file @
6ae8bf84
...
...
@@ -5551,6 +5551,20 @@ static grub_err_t ventoy_cmd_iso_vd_id_begin(grub_extcmd_context_t ctxt, int arg
return
ret
;
}
static
grub_err_t
ventoy_cmd_fn_mutex_lock
(
grub_extcmd_context_t
ctxt
,
int
argc
,
char
**
args
)
{
(
void
)
ctxt
;
(
void
)
argc
;
g_ventoy_fn_mutex
=
0
;
if
(
argc
==
1
&&
args
[
0
][
0
]
==
'1'
&&
args
[
0
][
1
]
==
0
)
{
g_ventoy_fn_mutex
=
1
;
}
VENTOY_CMD_RETURN
(
GRUB_ERR_NONE
);
}
int
ventoy_env_init
(
void
)
{
char
buf
[
64
];
...
...
@@ -5751,6 +5765,7 @@ static cmd_para ventoy_cmds[] =
{
"vt_iso_vd_id_parse"
,
ventoy_cmd_iso_vd_id_parse
,
0
,
NULL
,
""
,
""
,
NULL
},
{
"vt_iso_vd_id_clear"
,
ventoy_iso_vd_id_clear
,
0
,
NULL
,
""
,
""
,
NULL
},
{
"vt_iso_vd_id_begin"
,
ventoy_cmd_iso_vd_id_begin
,
0
,
NULL
,
""
,
""
,
NULL
},
{
"vt_fn_mutex_lock"
,
ventoy_cmd_fn_mutex_lock
,
0
,
NULL
,
""
,
""
,
NULL
},
};
int
ventoy_register_all_cmd
(
void
)
...
...
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
View file @
6ae8bf84
...
...
@@ -1019,6 +1019,7 @@ extern int g_ventoy_grub2_mode;
extern
int
g_ventoy_wimboot_mode
;
extern
int
g_ventoy_iso_uefi_drv
;
extern
int
g_ventoy_case_insensitive
;
extern
int
g_ventoy_fn_mutex
;
extern
grub_uint8_t
g_ventoy_chain_type
;
extern
int
g_vhdboot_enable
;
...
...
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