making pbf-gen work with hex line lengths other than 25

This commit is contained in:
Benji Dial 2021-02-18 14:35:52 -05:00
parent 00cc8736f1
commit 947dfe3e41

View file

@ -5,7 +5,7 @@
bitmaps = {}
File.readlines(ARGV[0]).map do |l|
bitmaps[l[0..3].to_i 16] = (l[5..-2].to_i(16) + 2**80).to_s(2)[1..-1]
bitmaps[l[0..3].to_i 16] = (l[5..-2].to_i(16) + 2**(ARGV[2].to_i() * ARGV[4].to_i())).to_s(2)[1..-1]
end
data_area_entries = {}