repo.or.cz
/
scummvm-innocent.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
0x47 stub
[scummvm-innocent.git]
/
engines
/
innocent
/
extract_charwidths.rb
blob
1cfb74aeb8f2aefd6cf2142af6addc311b8b733c
1
#!/usr/bin/env ruby
2
3
exefile = ARGV[0]
4
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
16
17
printf("\n")