From d066b3933426323c3f27d7643ef6186ba2c24a27 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 27 Feb 2021 12:51:56 -0800 Subject: [PATCH] Screenshot: Provide common params properly. --- Core/Dialog/PSPScreenshotDialog.cpp | 6 ++++++ Core/Dialog/PSPScreenshotDialog.h | 1 + 2 files changed, 7 insertions(+) diff --git a/Core/Dialog/PSPScreenshotDialog.cpp b/Core/Dialog/PSPScreenshotDialog.cpp index 47cb87af33..acfe62db20 100644 --- a/Core/Dialog/PSPScreenshotDialog.cpp +++ b/Core/Dialog/PSPScreenshotDialog.cpp @@ -128,3 +128,9 @@ void PSPScreenshotDialog::DoState(PointerWrap &p) { Do(p, params_); } } + +pspUtilityDialogCommon *PSPScreenshotDialog::GetCommonParam() { + if (params_.IsValid()) + return ¶ms_->base; + return nullptr; +} diff --git a/Core/Dialog/PSPScreenshotDialog.h b/Core/Dialog/PSPScreenshotDialog.h index 4165d0943c..e0fe0cebeb 100644 --- a/Core/Dialog/PSPScreenshotDialog.h +++ b/Core/Dialog/PSPScreenshotDialog.h @@ -31,6 +31,7 @@ public: virtual int Update(int animSpeed) override; virtual int ContStart(); virtual void DoState(PointerWrap &p) override; + virtual pspUtilityDialogCommon *GetCommonParam() override; protected: // TODO: Manage status correctly.