Support glob

This commit is contained in:
Madeline Lim 2018-05-19 21:34:07 -07:00
parent 2e8d97a0da
commit c91b1799cb

View file

@ -3,7 +3,7 @@ require 'ruby2d'
# fn = 'app/Content/Maps/1-ForsakenCity.bin' # fn = 'app/Content/Maps/1-ForsakenCity.bin'
fn = ARGV[0] ARGV.each do |fn|
a = CelesteMapReader.new(fn)
a = CelesteMapReader.new(fn) File.open("#{File.basename(fn)}.xml", "wb") { |f| f.write a.root.inspect }
File.open("#{File.basename(fn)}.xml", "wb") { |f| f.write a.root.inspect } end