UI: Correct screenshot paths.

This was preventing screenshots from saving properly.
This commit is contained in:
Unknown W. Brackets authored and GitHub committed 2021-05-30 10:29:16 -07:00
1 parent 01dc3c193a
commit 59322d3063
1 file changed
+2 -2
+2 -2
View File
@@ -1017,9 +1017,9 @@ void TakeScreenshot() {
Path filename;
while (i < 10000){
if (g_Config.bScreenshotsAsPNG)
filename = path / StringFromFormat("%s_%05d.png", path.c_str(), gameId.c_str(), i);
filename = path / StringFromFormat("%s_%05d.png", gameId.c_str(), i);
else
filename = path / StringFromFormat("%s_%05d.jpg", path.c_str(), gameId.c_str(), i);
filename = path / StringFromFormat("%s_%05d.jpg", gameId.c_str(), i);
File::FileInfo info;
if (!File::Exists(filename))
break;