File tree Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Expand file tree Collapse file tree 1 file changed +2
-24
lines changed Original file line number Diff line number Diff line change 1
1
package commands
2
2
3
3
import (
4
- "encoding/json"
5
4
"fmt"
6
- "log"
7
- "os"
8
5
"os/exec"
9
6
"ret/config"
10
- "ret/data"
11
- "ret/theme"
12
7
"time"
13
8
)
14
9
@@ -55,26 +50,9 @@ func Ida(args []string) {
55
50
56
51
go idaSpinner ()
57
52
58
- idaArgs := make ([] string , 0 )
53
+ launchIda := exec . Command ( config . IdaInstallPath + "/ida64" )
59
54
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 ()
78
56
if err != nil {
79
57
fmt .Println ("warning:\n " , err )
80
58
}
You can’t perform that action at this time.
0 commit comments