win32: screenshot: fix failure to save pngs and failure to respect user specified path
This commit is contained in:
parent
087e9ae5ed
commit
f71921404c
|
@ -118,9 +118,10 @@ void HK_PrintScreen(int param)
|
||||||
strcpy(outFilename,filename.c_str());
|
strcpy(outFilename,filename.c_str());
|
||||||
if(!GetSaveFileName(&ofn))
|
if(!GetSaveFileName(&ofn))
|
||||||
return;
|
return;
|
||||||
|
filename = outFilename;
|
||||||
|
|
||||||
if(toupper(strright(filename,4)) == ".BMP")
|
if(toupper(strright(filename,4)) == ".PNG")
|
||||||
NDS_WriteBMP(filename.c_str());
|
NDS_WritePNG(filename.c_str());
|
||||||
else if(toupper(strright(filename,4)) == ".BMP")
|
else if(toupper(strright(filename,4)) == ".BMP")
|
||||||
NDS_WriteBMP(filename.c_str());
|
NDS_WriteBMP(filename.c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue