UI: Correct screenshot paths.

This was preventing screenshots from saving properly.
This commit is contained in:
Unknown W. Brackets 2021-05-30 10:29:16 -07:00 committed by GitHub
parent 01dc3c193a
commit 59322d3063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;