mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Work around reported crash in ReportScreen
This commit is contained in:
+2
-4
@@ -176,13 +176,12 @@ ScreenRenderFlags ReportScreen::PreRender(ScreenRenderMode mode) {
|
||||
File::CreateDir(path);
|
||||
}
|
||||
screenshotFilename_ = screenshotPath;
|
||||
ScheduleScreenshot(screenshotFilename_, ScreenshotFormat::JPG, ScreenshotType::Display, 4, [this](ScreenshotResult result) {
|
||||
ScheduleScreenshot(screenshotFilename_, ScreenshotFormat::JPG, ScreenshotType::Display, 4, [](ScreenshotResult result) {
|
||||
if (result == ScreenshotResult::Success) {
|
||||
// Redo the views already, now with a screenshot included.
|
||||
RecreateViews();
|
||||
System_PostUIMessage(UIMessage::RECREATE_VIEWS);
|
||||
}
|
||||
});
|
||||
|
||||
tookScreenshot_ = true;
|
||||
} else if (g_Config.bSkipBufferEffects && !tookScreenshot_) {
|
||||
// Delete a leftover screenshot if we didn't take one now.
|
||||
@@ -190,7 +189,6 @@ ScreenRenderFlags ReportScreen::PreRender(ScreenRenderMode mode) {
|
||||
tookScreenshot_ = true;
|
||||
screenshotFilename_.clear();
|
||||
}
|
||||
|
||||
return ScreenRenderFlags::NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user