mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
18 lines
242 B
Python
18 lines
242 B
Python
|
import sys
|
||
|
|
||
|
data = file(sys.argv[1], "rb").read()
|
||
|
|
||
|
i = 0
|
||
|
print "const 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 "};"
|