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
43e92187
Commit
43e92187
authored
Feb 17, 2022
by
longpanda
Browse files
Fix a bug when creating multi-mod configuration for img_list in VentoyPlugson.
parent
23f4f18e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
Plugson/src/Web/ventoy_http.c
Plugson/src/Web/ventoy_http.c
+8
-3
Plugson/vs/VentoyPlugson/Release/VentoyPlugson.exe
Plugson/vs/VentoyPlugson/Release/VentoyPlugson.exe
+0
-0
Plugson/www/helplist
Plugson/www/helplist
+1
-1
Plugson/www/plugson_menu_tip.html
Plugson/www/plugson_menu_tip.html
+1
-1
No files found.
Plugson/src/Web/ventoy_http.c
View file @
43e92187
...
...
@@ -1775,7 +1775,9 @@ int ventoy_data_cmp_image_list(data_image_list *data1, data_image_list *data2)
int
ventoy_data_save_image_list
(
data_image_list
*
data
,
const
char
*
title
,
char
*
buf
,
int
buflen
)
{
int
pos
=
0
;
int
prelen
;
path_node
*
node
=
NULL
;
char
newtitle
[
64
];
(
void
)
title
;
...
...
@@ -1783,17 +1785,20 @@ int ventoy_data_save_image_list(data_image_list *data, const char *title, char *
{
return
0
;
}
prelen
=
(
int
)
strlen
(
"image_list"
);
VTOY_JSON_FMT_BEGIN
(
pos
,
buf
,
buflen
);
if
(
data
->
type
==
0
)
{
VTOY_JSON_FMT_KEY_L
(
L1
,
"image_list"
);
scnprintf
(
newtitle
,
sizeof
(
newtitle
),
"image_list%s"
,
title
+
prelen
);
}
else
{
VTOY_JSON_FMT_KEY_L
(
L1
,
"image_blacklist"
);
scnprintf
(
newtitle
,
sizeof
(
newtitle
),
"image_blacklist%s"
,
title
+
prelen
);
}
VTOY_JSON_FMT_KEY_L
(
L1
,
newtitle
);
VTOY_JSON_FMT_ARY_BEGIN_N
();
...
...
Plugson/vs/VentoyPlugson/Release/VentoyPlugson.exe
View file @
43e92187
No preview for this file type
Plugson/www/helplist
View file @
43e92187
de_DEen_USfr_FRhr_HRid_IDja_JPpt_PTsr_CYsr_SRtr_TRzh_CN
\ No newline at end of file
de_DEen_USfr_FRhr_HRid_IDja_JPpt_PTsr_RStr_TRzh_CN
\ No newline at end of file
Plugson/www/plugson_menu_tip.html
View file @
43e92187
...
...
@@ -195,7 +195,7 @@
$
(
'
input:text[id=id_tip_text_top]
'
).
val
(
data
.
top
);
$
(
'
input:text[id=id_tip_text_color]
'
).
val
(
data
.
color
);
FillTipTable
(
data
.
tips
);
FillTipTable
(
data
);
}
...
...
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