Fix a bug in scripts/try-uncompress
This commit is contained in:
@@ -389,7 +389,8 @@ def sprites(filename)
|
||||
px = hdr.width * hdr.height
|
||||
pp hdr
|
||||
pp spr
|
||||
|
||||
|
||||
data = spr.to_data
|
||||
|
||||
puts "%s %03d: %02x %02x %02x %02x %3d %3d %5d %5d %.2f %02x %02x ... %02x"%[
|
||||
filename,
|
||||
@@ -403,9 +404,9 @@ def sprites(filename)
|
||||
px,
|
||||
hdr.size,
|
||||
(hdr.size*8) / px.to_f,
|
||||
spr.data.bytes[0],
|
||||
spr.data.bytes[1],
|
||||
spr.data.bytes[-1],
|
||||
data.bytes[0],
|
||||
data.bytes[1],
|
||||
data.bytes[-1],
|
||||
]
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user