aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/bootmanager.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-12-23 14:36:51 -0500
committerGitHub <noreply@github.com>2018-12-23 14:36:51 -0500
commit9a22a94a510e6f537b5156a960f0d49307089668 (patch)
tree05d895b5fc1aa0caa51cce9314fd1c81244f69a0 /src/yuzu/bootmanager.h
parent52726342bd7b030b1a79e577a637d8a325d21dc8 (diff)
parenta2be49305d8c5c66cfa2ec2060688013cf3729b9 (diff)
Merge pull request #1886 from FearlessTobi/port-4164
Port citra-emu/citra#4164: "citra_qt, video_core: Screenshot functionality"
Diffstat (limited to 'src/yuzu/bootmanager.h')
-rw-r--r--src/yuzu/bootmanager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.h b/src/yuzu/bootmanager.h
index 873985564..4e3028215 100644
--- a/src/yuzu/bootmanager.h
+++ b/src/yuzu/bootmanager.h
@@ -8,6 +8,7 @@
#include <condition_variable>
#include <mutex>
#include <QGLWidget>
+#include <QImage>
#include <QThread>
#include "common/thread.h"
#include "core/core.h"
@@ -139,6 +140,8 @@ public:
void InitRenderTarget();
+ void CaptureScreenshot(u16 res_scale, const QString& screenshot_path);
+
public slots:
void moveContext(); // overridden
@@ -165,6 +168,9 @@ private:
EmuThread* emu_thread;
+ /// Temporary storage of the screenshot taken
+ QImage screenshot_image;
+
protected:
void showEvent(QShowEvent* event) override;
};