diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-09-19 22:28:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-09-19 22:28:42 (GMT) |
commit | 0e3059731d9687027c913135b3b856596c49a689 (patch) | |
tree | d3c3754f95c90ae50168817e6248afee6873fbf3 /src/gui/menus | |
parent | 18648e4e8763a3bc005d6fae51eae3d1528d7d29 (diff) |
Extended the prototype for matching formats in order to get it suitable for plugins.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@577 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/menus')
-rw-r--r-- | src/gui/menus/project.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/gui/menus/project.c b/src/gui/menus/project.c index a68b137..6b7e6b4 100644 --- a/src/gui/menus/project.c +++ b/src/gui/menus/project.c @@ -32,7 +32,7 @@ #include "../editem-int.h" -#include "../../analysis/binaries/file.h" +#include "../../analysis/contents/file.h" #include "../../dialogs/shellcode.h" #include "../../gtkext/easygtk.h" @@ -270,7 +270,7 @@ static void mcb_project_add_binary_file(GtkMenuItem *menuitem, GMenuBar *bar) GtkWidget *dialog; /* Boîte à afficher */ char *dir; /* Répertoire courant */ gchar *filename; /* Nom du fichier à intégrer */ - GLoadedBinary *binary; /* Représentation chargée */ + GBinContent *content; /* Contenu binaire à charger */ dialog = gtk_file_chooser_dialog_new(_("Open a binary file"), GTK_WINDOW(G_EDITOR_ITEM(bar)->ref), @@ -299,14 +299,9 @@ static void mcb_project_add_binary_file(GtkMenuItem *menuitem, GMenuBar *bar) { filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); - binary = g_file_binary_new_from_file(filename); + content = g_file_content_new(filename); - if (binary != NULL) - { - g_signal_connect(binary, "disassembly-done", - G_CALLBACK(g_study_project_add_loaded_binary), get_current_project()); - g_loaded_binary_analyse(binary); - } + qck_study_new_content(content, PCS_ROOT); g_free(filename); |