mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(go): profiles are now configured by an info.json file
This commit is contained in:
parent
e591b8b17d
commit
9053d61b6b
13 changed files with 222 additions and 111 deletions
|
|
@ -10,6 +10,7 @@ import (
|
|||
)
|
||||
|
||||
type Profile struct {
|
||||
Info Info
|
||||
Directory string
|
||||
SymbolTable *symfile.InMemoryTable
|
||||
}
|
||||
|
|
@ -29,6 +30,11 @@ func Open(profile_directory string) (profile *Profile, err error) {
|
|||
fmt.Println("Opening profile", profile_directory)
|
||||
|
||||
profile = new(Profile)
|
||||
|
||||
if err = read_info(filepath.Join(profile_directory, "info.json"), &profile.Info); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
profile.Directory = profile_directory
|
||||
|
||||
path_to_symbols_file := filepath.Join(profile_directory, "symbol", "main.sym")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue