Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 6b1dc49

Browse files
committed
Allow screenshot capture in paused state by unpausing to capture next frame
1 parent 71eca05 commit 6b1dc49

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/citra_qt/main.cpp

+10-3
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ void GMainWindow::UpdateMenuState() {
970970
action->setEnabled(emulation_running);
971971
}
972972

973-
ui->action_Capture_Screenshot->setEnabled(emulation_running && !is_paused);
973+
ui->action_Capture_Screenshot->setEnabled(emulation_running);
974974

975975
if (emulation_running && is_paused) {
976976
ui->action_Pause->setText(tr("&Continue"));
@@ -2408,11 +2408,18 @@ void GMainWindow::OnSaveMovie() {
24082408
}
24092409

24102410
void GMainWindow::OnCaptureScreenshot() {
2411-
if (!emu_thread || !emu_thread->IsRunning()) [[unlikely]] {
2411+
if (!emu_thread) [[unlikely]] {
24122412
return;
24132413
}
24142414

2415-
OnPauseGame();
2415+
if (!emu_thread->IsRunning()
2416+
&& (QMessageBox::question(this, tr("Game will unpause"),
2417+
tr("The game will be unpaused, and the next frame will be captured. Is this okay?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::No)) {
2418+
return;
2419+
} else {
2420+
OnPauseGame();
2421+
}
2422+
24162423
std::string path = UISettings::values.screenshot_path.GetValue();
24172424
if (!FileUtil::IsDirectory(path)) {
24182425
if (!FileUtil::CreateFullPath(path)) {

0 commit comments

Comments
 (0)