Compare commits

...

2 Commits

Author SHA1 Message Date
mercury233
81ca3db76a minor format 2021-07-26 13:36:58 +08:00
mercury233
dc9c32d136 main: Add fail hint for taking screenshot in Vulkan mode 2021-07-26 11:57:09 +08:00

View File

@@ -2816,6 +2816,14 @@ void GMainWindow::OnToggleFilterBar() {
void GMainWindow::OnCaptureScreenshot() {
OnPauseGame();
if (Settings::values.renderer_backend.GetValue() != Settings::RendererBackend::OpenGL) {
QMessageBox::warning(
this, tr("Failed to capture screenshot."),
tr("The screenshot feature is only available in OpenGL mode for now."));
OnStartGame();
return;
}
const u64 title_id = Core::System::GetInstance().CurrentProcess()->GetTitleID();
const auto screenshot_path =
QString::fromStdString(Common::FS::GetYuzuPathString(Common::FS::YuzuPath::ScreenshotsDir));