mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-05 21:24:27 -04:00
Improved make_bitmap tool (#2615)
This commit is contained in:
parent
288f6bd517
commit
319ed3e7b4
2 changed files with 5234 additions and 5234 deletions
File diff suppressed because it is too large
Load diff
|
@ -98,12 +98,12 @@ f.write("/*\n"
|
||||||
"#include \"ui.hpp\"\n\n"
|
"#include \"ui.hpp\"\n\n"
|
||||||
"namespace ui {\n\n")
|
"namespace ui {\n\n")
|
||||||
|
|
||||||
for file in listdir(graphics_path):
|
for file in sorted(listdir(graphics_path)):
|
||||||
if file.endswith(".png") and path.isfile(graphics_path + file):
|
if file.endswith(".png") and path.isfile(graphics_path + file):
|
||||||
convert_png(graphics_path + file)
|
convert_png(graphics_path + file)
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
f.write("} /* namespace ui */\n\n")
|
f.write("} /* namespace ui */\n\n")
|
||||||
f.write("#endif/*__BITMAP_HPP__*/\n")
|
f.write("#endif /*__BITMAP_HPP__*/\n")
|
||||||
|
|
||||||
print(("Converted " + str(count) + " files"))
|
print(("Converted " + str(count) + " files"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue