summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-07-31 23:34:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-07-31 23:34:56 (GMT)
commitd02deb2425d6559c357bdd00e1c0fb05f35d5fc9 (patch)
tree1a78849aa7d51706856a6c6127f66b48c188d0fc /src/main.c
parentfd2abec30a224279c62a7ab4892d95e56cb08dff (diff)
Processed disassembling in a dedicated thread.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@104 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index cc78897..46506d3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,6 +31,7 @@
#include "editor.h"
#include "params.h"
#include "project.h"
+#include "analysis/delayed.h"
#include "arch/processor.h"
#include "format/exe_format.h"
#include "format/mangling/demangler.h"
@@ -95,19 +96,19 @@ int main(int argc, char **argv)
editor = create_editor();
gtk_widget_show(editor);
+ init_delayed_manager(G_OBJECT(editor));
+
init_all_plugins(G_OBJECT(editor));
/* Charge le dernier projet */
filename = get_string_config_value(config, MPT_RECENT_PROJECT_1);
- if (filename == NULL) project = create_empty_openida_project();
- else project = g_openida_project_new_from_xml(filename);
+ if (filename == NULL) project = create_empty_openida_project(G_OBJECT(editor));
+ else project = g_openida_project_new_from_xml(G_OBJECT(editor), filename);
set_current_openida_project(project);
- display_openida_project(project, G_OBJECT(editor));
-
/* Exécution du programme */
gdk_threads_enter();