mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-17 21:48:19 +00:00
18 lines
245 B
Python
18 lines
245 B
Python
import sys
|
|
|
|
data = file(sys.argv[1], "rb").read()
|
|
|
|
i = 0
|
|
print "unsigned char", sys.argv[2], "[] = {"
|
|
print str(ord(data[0])),
|
|
for d in data[1:]:
|
|
s = ","+str(ord(d))
|
|
print s,
|
|
i += len(s)+1
|
|
|
|
if i >= 70:
|
|
print ""
|
|
i = 0
|
|
print ""
|
|
print "};"
|