diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2010-12-02 00:59:53 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2010-12-02 00:59:53 (GMT) |
commit | 957f50b657456c4c7da2778197c144548eded8cd (patch) | |
tree | 9aea0e8ffb4dc62b23fd324b55910916cef95167 /src/format/dex/dex.c | |
parent | f2d479c16a427696790441fa1459e7194f49bb6a (diff) |
Improved the rendering of decompiled Dex code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@196 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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) |