shithub: pokecrystal

Download patch

ref: 915c6358490494b87c81a464492944f80ee86384
parent: 128dce7aac2f8ad748e42c04158dae33a8cbb077
author: Bryan Bishop <[email protected]>
date: Wed May 29 15:44:06 EDT 2013

make gfx.py png take only a path

--- a/extras/gfx.py
+++ b/extras/gfx.py
@@ -1604,7 +1604,9 @@
 	elif sys.argv[1] == 'png':
 
 		if '.2bpp' in sys.argv[2]:
-			if sys.argv[4] == 'greyscale':
+			if len(sys.argv) == 3:
+				to_png(sys.argv[2])
+			elif sys.argv[4] == 'greyscale':
 				to_png(sys.argv[2], sys.argv[3])
 			else:
 				to_png(sys.argv[2], sys.argv[3], sys.argv[4])