summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-02-18 14:35:52 -0500
committerBenji Dial <benji6283@gmail.com>2021-02-18 14:35:52 -0500
commit947dfe3e41ec36393b709abc1f38b8ab9340114b (patch)
tree5c8893f3e0c5549ab332a7b6737d10b82cc24cd6 /tools
parent00cc8736f10098dedf6b856b9ad8bd0094211263 (diff)
downloadportland-os-947dfe3e41ec36393b709abc1f38b8ab9340114b.tar.gz
making pbf-gen work with hex line lengths other than 25
Diffstat (limited to 'tools')
-rw-r--r--tools/pbf-gen.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pbf-gen.rb b/tools/pbf-gen.rb
index f4c59c8..c37b51a 100644
--- a/tools/pbf-gen.rb
+++ b/tools/pbf-gen.rb
@@ -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 = {}