Skip to content

Commit

Permalink
step start command in toolBar event
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkwork committed Jul 4, 2024
1 parent b66426e commit 635113a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sdk/sdk_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ func TestSdk(t *testing.T) {
return
}
mylog.Call(func() {
SetCustomDriverPath(stringToBytePointer(SysPath), stringToBytePointer(stream.BaseName(SysPath)))
SetCustomDriverPath(StringToBytePointer(SysPath), StringToBytePointer(stream.BaseName(SysPath)))
assert.True(t, VmxSupportDetection())
mylog.Trace("InstallVmmDriver", InstallVmmDriver())
ConnectLocalDebugger()
Expand Down Expand Up @@ -68,7 +68,7 @@ func Test2(t *testing.T) {
// "hyperlog.dll",
// "kdserial.dll",
//}
SetCustomDriverPath(stringToBytePointer(SysPath), stringToBytePointer(stream.BaseName(SysPath)))
SetCustomDriverPath(StringToBytePointer(SysPath), StringToBytePointer(stream.BaseName(SysPath)))
d := driver.NewObject("HyperdbgHypervisorDevice", SysPath)
// d.SetDependencies(Dependencies)
d.Load(SysPath)
Expand Down
2 changes: 1 addition & 1 deletion sdk/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func isGithubCI() bool {
return strings.Contains(GOPATH, "runneradmin") || strings.Contains(GOPATH, "hostedtoolcache") // why?
}

func stringToBytePointer(s string) *byte {
func StringToBytePointer(s string) *byte {
bytes := []byte(s)
ptr := &bytes[0]
return ptr
Expand Down
3 changes: 1 addition & 2 deletions ux/ux.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ func newToolbar() *toolbar {
}),
close: widget.NewImageButton("close", m.Get("close.png"), func() {}),
run: widget.NewImageButton("run", m.Get("run.png"), func() {
mylog.Todo("start command here, need local debug support")
// todo start process api here
mylog.Warning(".start", sdk.Interpreter(sdk.StringToBytePointer(".start")))
}),
runthread: widget.NewImageButton("runthread", m.Get("runthread.png"), func() {}),
pause: widget.NewImageButton("pause", m.Get("pause.png"), func() {
Expand Down

0 comments on commit 635113a

Please sign in to comment.