mirror of
https://github.com/maddievision/Celestial.git
synced 2024-08-14 23:55:37 +00:00
11 lines
258 B
Ruby
11 lines
258 B
Ruby
require "./celeste_map"
|
|
# fn = 'app/Content/Maps/1-ForsakenCity.bin'
|
|
|
|
ARGV.each do |fn|
|
|
base = File.basename(fn, ".json")
|
|
puts "Opening #{fn}"
|
|
a = CelesteMap.new(fn, fmt: :json)
|
|
outfn = "bin/#{base}.bin"
|
|
puts "Writing #{outfn}"
|
|
a.write outfn
|
|
end
|