Skip to content

Commit

Permalink
Implement ability to read the json format in the importer.
Browse files Browse the repository at this point in the history
  • Loading branch information
giladreich committed Jan 27, 2020
1 parent 9f237de commit ac9e4a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ida_migrator/import_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ def __init__(self, file_path, *args, **kwargs):

def populate_function_names(self):
print('[IDA Migrator]: Loading functions...')
with open(self.file_path, "r") as f:
parsed_json = json.loads(f.read())
self.tblFunctions.setRowCount(parsed_json['functions_count'])
index = 0
for func in parsed_json['functions']:
self.append_table_item(index, func['address'], func['name'])
index += 1
print('[IDA Migrator]: Finished loading functions.')

def on_start_clicked(self):
print('started import')

0 comments on commit ac9e4a2

Please sign in to comment.