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
a8edb99d
"vscode:/vscode.git/clone" did not exist on "7a1da146446d783f1fa41d38e403d04afae453be"
Commit
a8edb99d
authored
May 31, 2021
by
longpanda
Browse files
priority key>parent in menu class plugin
parent
ac3ab976
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
+13
-4
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_plugin.c
View file @
a8edb99d
...
...
@@ -2488,16 +2488,25 @@ const char * ventoy_plugin_get_menu_class(int type, const char *name, const char
continue
;
}
if
(
node
->
parent
)
if
(
node
->
parent
==
0
)
{
if
((
node
->
patlen
<
path
len
)
&&
ventoy_plugin_is_parent
(
node
->
pattern
,
node
->
pat
len
,
path
))
if
((
node
->
patlen
<
name
len
)
&&
grub_strstr
(
name
,
node
->
pat
tern
))
{
return
node
->
class
;
}
}
else
}
for
(
node
=
g_menu_class_head
;
node
;
node
=
node
->
next
)
{
if
(
node
->
type
!=
type
)
{
if
((
node
->
patlen
<
namelen
)
&&
grub_strstr
(
name
,
node
->
pattern
))
continue
;
}
if
(
node
->
parent
)
{
if
((
node
->
patlen
<
pathlen
)
&&
ventoy_plugin_is_parent
(
node
->
pattern
,
node
->
patlen
,
path
))
{
return
node
->
class
;
}
...
...
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