alekmaul/pvsneslib

gfx2snes tries to open BMP file when PNG specified on command line

jeffythedragonslayer opened this issue · 4 comments

$ gfx2snes -pc4 /E/SOM_Chocolate.png

gfx2snes: 'Opening graphics file: [E:/SOM_Chocolate.bmp]'
gfx2snes: error 'Can't open file [E:/SOM_Chocolate.bmp]'

you need to specify that it is a png file with -fpng flag, it is not an error without this flag.
Just take a look at gfx2snes options.

Ok, I think it wouldn't be too hard for gfx2snes to figure that out by looking at the filename though.

it is not hard, it is just that i do not want it to check the file to know exactly what is the content, even if the extension is not correct

i find that the idea to detect format from file name was good (less parameters, less issues compared to the risk to have a file with an extension which is not the real format associated)