Allow taking screenshots in the app menu

This commit is contained in:
Henrik Rydgård committed 2024-05-10 21:10:11 +02:00
1 parent e0e96200b9
commit d21fef52ae
8 files changed
+34 -19

No files matched your search

+1 -1
View File
@@ -1056,7 +1056,7 @@ namespace SaveState
case SAVESTATE_SAVE_SCREENSHOT:
{
int maxResMultiplier = 2;
tempResult = TakeGameScreenshot(op.filename, ScreenshotFormat::JPG, SCREENSHOT_DISPLAY, nullptr, nullptr, maxResMultiplier);
tempResult = TakeGameScreenshot(nullptr, op.filename, ScreenshotFormat::JPG, SCREENSHOT_DISPLAY, nullptr, nullptr, maxResMultiplier);
callbackResult = tempResult ? Status::SUCCESS : Status::FAILURE;
if (!tempResult) {
ERROR_LOG(SAVESTATE, "Failed to take a screenshot for the savestate! %s", op.filename.c_str());