summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-11-19 21:26:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-11-19 21:26:51 (GMT)
commit5a70286f7f56cc72a0249fcaf404afabfb033956 (patch)
treeef2b94b04a3e84b93832749ccf6cd9b9cc370d3c /src/plugins
parent760e2e7346518dd1264126c1696f9ad88884d64c (diff)
Handled Dalvik exception handlers in the graphic view.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@285 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/plugin.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/plugins/plugin.c b/src/plugins/plugin.c
index 89b46f0..416c647 100644
--- a/src/plugins/plugin.c
+++ b/src/plugins/plugin.c
@@ -125,10 +125,7 @@ GPluginModule *g_plugin_module_new(const gchar *filename, GObject *ref)
result->name = get_name();
if (!g_module_symbol(result->module, "init_plugin", (gpointer *)&result->init))
- {
- printf("Err plugin init sym\n");
- /* TODO */
- }
+ result->init = NULL;
/*
@@ -156,8 +153,7 @@ GPluginModule *g_plugin_module_new(const gchar *filename, GObject *ref)
result->get_action = get_action;
- /*
- if (result->action & (PGA_DISASSEMBLE | PGA_CODE_PROCESS))
+ if (g_plugin_module_get_action(result) & (PGA_DISASSEMBLE | PGA_DISASS_PROCESS | PGA_CODE_PROCESS))
{
if (!g_module_symbol(result->module, "execute_action_on_binary", (gpointer *)&result->exec_on_bin))
{
@@ -168,14 +164,13 @@ GPluginModule *g_plugin_module_new(const gchar *filename, GObject *ref)
}
- */
- if (!result->init(result, ref))
+ if (result->init != NULL && !result->init(result, ref))
{
log_variadic_message(LMT_ERROR, _("Initialization of plugin '%s' failed !"), filename);
goto bad_plugin;