Skip to content
This repository has been archived by the owner on Nov 2, 2019. It is now read-only.

Commit

Permalink
Fix names in decompiler by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Aug 19, 2012
1 parent 5eb389b commit c57a029
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/furnace-avm2-decompiler
Expand Up @@ -50,6 +50,7 @@ EOS


opt :no_output, "Don't write out any code", :default => false opt :no_output, "Don't write out any code", :default => false


opt :fix_names, "Remove invalid characters from names", :default => true, :short => '-q'
opt :decompile, "Write ActionScript 3 code", :type => :boolean, :short => '-d' opt :decompile, "Write ActionScript 3 code", :type => :boolean, :short => '-d'
opt :destructurize, "Write internal token structure", :type => :boolean, :short => '-s' opt :destructurize, "Write internal token structure", :type => :boolean, :short => '-s'


Expand Down Expand Up @@ -113,6 +114,10 @@ if opts[:grep]
exit exit
end end


if opts[:fix_names]
abc.fix_names!
end

global_slots = {} global_slots = {}


abc.scripts.each do |script| abc.scripts.each do |script|
Expand Down

0 comments on commit c57a029

Please sign in to comment.