summaryrefslogtreecommitdiff
path: root/src/format/format.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-11-14 16:30:10 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-11-14 16:30:10 (GMT)
commit4fd2ebd6ef0875b5d7d632db735d0510e19d4570 (patch)
tree58778508862e4dc3412b3391b56109871831e126 /src/format/format.c
parentae8cf6257c8d929de1b7ee86e29fcb45ab4af91c (diff)
Loaded source file from Dex classes.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@193 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/format.c')
-rw-r--r--src/format/format.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/format/format.c b/src/format/format.c
index 73f23bd..e618120 100644
--- a/src/format/format.c
+++ b/src/format/format.c
@@ -335,8 +335,9 @@ GDecInstruction *g_binary_format_decompile_routine(const GBinFormat *format, GBi
/******************************************************************************
* *
-* Paramètres : format = informations chargées à consulter. *
-* buffer = tampon mis à disposition pour la sortie. *
+* Paramètres : format = informations chargées à consulter. *
+* buffer = tampon mis à disposition pour la sortie. *
+* filename = nom du fichier source à cibler. *
* *
* Description : Procède à la décompilation complète du format. *
* *
@@ -346,7 +347,7 @@ GDecInstruction *g_binary_format_decompile_routine(const GBinFormat *format, GBi
* *
******************************************************************************/
-void g_binary_format_decompile(const GBinFormat *format, GCodeBuffer *buffer)
+void g_binary_format_decompile(const GBinFormat *format, GCodeBuffer *buffer, const char *filename)
{
@@ -356,6 +357,9 @@ void g_binary_format_decompile(const GBinFormat *format, GCodeBuffer *buffer)
size_t i;
GDecInstruction *instr;
+
+ if (format->decompile != NULL)
+ format->decompile(format, buffer, filename);
routines = g_binary_format_get_routines(format, &count);