Skip to content

Commit 0c4749e

Browse files
committed
don't try to supply arguments to ida
1 parent 1a44321 commit 0c4749e

File tree

1 file changed

+2
-24
lines changed

1 file changed

+2
-24
lines changed

commands/ida.go

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
package commands
22

33
import (
4-
"encoding/json"
54
"fmt"
6-
"log"
7-
"os"
85
"os/exec"
96
"ret/config"
10-
"ret/data"
11-
"ret/theme"
127
"time"
138
)
149

@@ -55,26 +50,9 @@ func Ida(args []string) {
5550

5651
go idaSpinner()
5752

58-
idaArgs := make([]string, 0)
53+
launchIda := exec.Command(config.IdaInstallPath + "/ida64")
5954

60-
jsonData, err := os.ReadFile(config.RetFilesNames)
61-
if err == nil {
62-
var files data.Files
63-
64-
err = json.Unmarshal(jsonData, &files)
65-
if err != nil {
66-
log.Fatalf("💥 "+theme.ColorRed+"error"+theme.ColorReset+": %v\n", err)
67-
}
68-
69-
for _, file := range files.Files {
70-
idaArgs = append(idaArgs, file.Filepath)
71-
}
72-
73-
}
74-
75-
launchIda := exec.Command(config.IdaInstallPath+"/ida64", idaArgs...)
76-
77-
err = launchIda.Start()
55+
err := launchIda.Start()
7856
if err != nil {
7957
fmt.Println("warning:\n", err)
8058
}

0 commit comments

Comments
 (0)