Browse Source

Fix conflicts when using more than 1 generated artwork file

gh-pages
falkTX 11 years ago
parent
commit
a9da60adf9
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      utils/png2rgba.py

+ 2
- 2
utils/png2rgba.py View File

@@ -59,7 +59,7 @@ def png2rgba(namespace, filenames):
if tempIndex != len(filenames): if tempIndex != len(filenames):
fdH.write("\n") fdH.write("\n")


fdC.write("static const unsigned char temp%i[] = {\n" % tempIndex)
fdC.write("static const unsigned char temp_%s_%i[] = {\n" % (shortFilename, tempIndex))


curColumn = 1 curColumn = 1
fdC.write(" ") fdC.write(" ")
@@ -101,7 +101,7 @@ def png2rgba(namespace, filenames):
curColumn += 1 curColumn += 1


fdC.write("};\n") fdC.write("};\n")
fdC.write("const char* %s::%sData = (const char*)temp%i;\n" % (namespace, shortFilename, tempIndex))
fdC.write("const char* %s::%sData = (const char*)temp_%s_%i;\n" % (namespace, shortFilename, shortFilename, tempIndex))


if tempIndex != len(filenames): if tempIndex != len(filenames):
fdC.write("\n") fdC.write("\n")


Loading…
Cancel
Save