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
65a2cb16
Commit
65a2cb16
authored
Apr 10, 2021
by
longpanda
Browse files
1.0.40 release
parent
e23e76f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
4 deletions
+35
-4
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
+9
-0
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_windows.c
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_windows.c
+24
-2
INSTALL/grub/grub.cfg
INSTALL/grub/grub.cfg
+1
-1
INSTALL/grub/themes/ventoy/theme.txt
INSTALL/grub/themes/ventoy/theme.txt
+1
-1
No files found.
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_def.h
View file @
65a2cb16
...
...
@@ -390,6 +390,15 @@ typedef struct wim_security_header
grub_uint32_t
count
;
/* Number of entries */
}
wim_security_header
;
typedef
struct
wim_stream_entry
{
grub_uint64_t
len
;
grub_uint64_t
unused1
;
wim_hash
hash
;
grub_uint16_t
name_len
;
/* name */
}
wim_stream_entry
;
/* Directory entry */
typedef
struct
wim_directory_entry
{
...
...
GRUB2/MOD_SRC/grub-2.04/grub-core/ventoy/ventoy_windows.c
View file @
65a2cb16
...
...
@@ -636,6 +636,21 @@ static wim_lookup_entry * ventoy_find_meta_entry(wim_header *header, wim_lookup_
return
NULL
;
}
static
grub_uint64_t
ventoy_get_stream_len
(
wim_directory_entry
*
dir
)
{
grub_uint16_t
i
;
grub_uint64_t
offset
=
0
;
wim_stream_entry
*
stream
=
(
wim_stream_entry
*
)((
char
*
)
dir
+
dir
->
len
);
for
(
i
=
0
;
i
<
dir
->
streams
;
i
++
)
{
offset
+=
stream
->
len
;
stream
=
(
wim_stream_entry
*
)((
char
*
)
stream
+
stream
->
len
);
}
return
offset
;
}
static
int
ventoy_update_all_hash
(
wim_patch
*
patch
,
void
*
meta_data
,
wim_directory_entry
*
dir
)
{
if
((
meta_data
==
NULL
)
||
(
dir
==
NULL
))
...
...
@@ -660,8 +675,15 @@ static int ventoy_update_all_hash(wim_patch *patch, void *meta_data, wim_directo
{
ventoy_update_all_hash
(
patch
,
meta_data
,
(
wim_directory_entry
*
)((
char
*
)
meta_data
+
dir
->
subdir
));
}
dir
=
(
wim_directory_entry
*
)((
char
*
)
dir
+
dir
->
len
);
if
(
dir
->
streams
)
{
dir
=
(
wim_directory_entry
*
)((
char
*
)
dir
+
dir
->
len
+
ventoy_get_stream_len
(
dir
));
}
else
{
dir
=
(
wim_directory_entry
*
)((
char
*
)
dir
+
dir
->
len
);
}
}
while
(
dir
->
len
>=
sizeof
(
wim_directory_entry
));
return
0
;
...
...
INSTALL/grub/grub.cfg
View file @
65a2cb16
...
...
@@ -1612,7 +1612,7 @@ function img_unsupport_menuentry {
#############################################################
#############################################################
set VENTOY_VERSION="1.0.
39
"
set VENTOY_VERSION="1.0.
40
"
#ACPI not compatible with Window7/8, so disable by default
set VTOY_PARAM_NO_ACPI=1
...
...
INSTALL/grub/themes/ventoy/theme.txt
View file @
65a2cb16
...
...
@@ -71,7 +71,7 @@ terminal-box: "terminal_box_*.png"
+ hbox{
left = 30%+
1
00
left = 30%+
2
00
top = 95%-50
width = 10%
height = 25
...
...
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