diff options
Diffstat (limited to 'src/format/format.c')
-rw-r--r-- | src/format/format.c | 10 |
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); |