diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-27 00:27:44 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-27 06:29:52 +0200 |
commit | f26dddf3b59ace84626dc05e2699514579d4a5bc (patch) | |
tree | 6521620938a6f644ae848b4ed632cf3f8c3c192c /src/core/hle/service/caps/caps_su.h | |
parent | Merge pull request #11880 from abouvier/unbundle-stb (diff) | |
download | yuzu-f26dddf3b59ace84626dc05e2699514579d4a5bc.tar yuzu-f26dddf3b59ace84626dc05e2699514579d4a5bc.tar.gz yuzu-f26dddf3b59ace84626dc05e2699514579d4a5bc.tar.bz2 yuzu-f26dddf3b59ace84626dc05e2699514579d4a5bc.tar.lz yuzu-f26dddf3b59ace84626dc05e2699514579d4a5bc.tar.xz yuzu-f26dddf3b59ace84626dc05e2699514579d4a5bc.tar.zst yuzu-f26dddf3b59ace84626dc05e2699514579d4a5bc.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/caps/caps_su.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/hle/service/caps/caps_su.h b/src/core/hle/service/caps/caps_su.h index 89e71f506..21912e95f 100644 --- a/src/core/hle/service/caps/caps_su.h +++ b/src/core/hle/service/caps/caps_su.h @@ -10,6 +10,7 @@ class System; } namespace Service::Capture { +enum class AlbumReportOption : s32; class AlbumManager; class IScreenShotApplicationService final : public ServiceFramework<IScreenShotApplicationService> { @@ -18,11 +19,19 @@ public: std::shared_ptr<AlbumManager> album_manager); ~IScreenShotApplicationService() override; + void CaptureAndSaveScreenshot(AlbumReportOption report_option); + private: + static constexpr std::size_t screenshot_width = 1280; + static constexpr std::size_t screenshot_height = 720; + static constexpr std::size_t bytes_per_pixel = 4; + void SetShimLibraryVersion(HLERequestContext& ctx); void SaveScreenShotEx0(HLERequestContext& ctx); void SaveScreenShotEx1(HLERequestContext& ctx); + std::array<u8, screenshot_width * screenshot_height * bytes_per_pixel> image_data; + std::shared_ptr<AlbumManager> manager; }; |