diff options
Diffstat (limited to 'src/format/dex/dex.c')
-rwxr-xr-x | src/format/dex/dex.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/format/dex/dex.c b/src/format/dex/dex.c index 25482af..174bd2b 100755 --- a/src/format/dex/dex.c +++ b/src/format/dex/dex.c @@ -260,15 +260,20 @@ static void g_dex_format_find_all_sources(GDexFormat *format) static void g_dex_format_decompile(const GDexFormat *format, GCodeBuffer *buffer, const char *filename) { + GLangOutput *lang; /* Langage de sortie */ size_t i; /* Boucle de parcours */ const char *source; /* Fichier source trouvé */ + lang = g_java_output_new(); + for (i = 0; i < format->classes_count; i++) { source = g_dex_class_get_source_file(format->classes[i], format); if (source == NULL || strcmp(source, filename) != 0) continue; - printf("SRC :: '%s'\n", source); + g_dex_class_decompile(format->classes[i], lang, buffer, format); + + #if 0 GOpenidaType *get_type_from_dex_pool(const GDexFormat *format, uint16_t index) |