Skip to content

Commit f41b056

Browse files
committed
update option.Options fields, improve variable name about template.
1 parent 1d9cf7f commit f41b056

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ import (
1414
)
1515

1616
func main() {
17-
tpl, err := os.ReadFile("Gleam-RT.bin")
17+
template, err := os.ReadFile("Gleam-RT.bin")
1818
checkError(err)
1919

2020
opts := option.Options{
21+
DisableSysmon: false,
22+
DisableWatchdog: false,
2123
NotEraseInstruction: false,
2224
NotAdjustProtect: false,
2325
TrackCurrentThread: false,
2426
}
25-
tpl, err = option.Set(tpl, &opts)
27+
template, err = option.Set(template, &opts)
2628
checkError(err)
2729

2830
arg1 := &argument.Arg{
@@ -36,7 +38,7 @@ func main() {
3638
stub, err := argument.Encode(arg1, arg2)
3739
checkError(err)
3840

39-
output := append(tpl, stub...)
41+
output := append(template, stub...)
4042
err = os.WriteFile("output.bin", output, 0600)
4143
checkError(err)
4244
}

0 commit comments

Comments
 (0)