0x47 stub
[scummvm-innocent.git] / engines / innocent / extract_charwidths.rb
blob1cfb74aeb8f2aefd6cf2142af6addc311b8b733c
1 #!/usr/bin/env ruby
3 exefile = ARGV[0]
5 File.open(exefile) do |f|
6         f.seek(0xcdcc)
7         first = true
8         (0...(0xd8-0x7c)).each do |i|
9                 printf(", ") if !first
10                 first = false
11                 code = f.read(1)
12                 code = code.unpack("C")
13                 printf("%d", code[0])
14         end
15 end
17 printf("\n")