diff options
author | german77 <juangerman-13@hotmail.com> | 2023-10-18 07:05:44 +0200 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-10-23 18:18:22 +0200 |
commit | 897b411ae76a817421453120ca0d0812e3de233f (patch) | |
tree | c4d69fd35790e21605c6382b29107186e5e2a6a1 /src/core/hle/service/caps/caps_manager.h | |
parent | externals: stb: Add image write (diff) | |
download | yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.gz yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.bz2 yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.lz yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.xz yuzu-897b411ae76a817421453120ca0d0812e3de233f.tar.zst yuzu-897b411ae76a817421453120ca0d0812e3de233f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/caps/caps_manager.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/service/caps/caps_manager.h b/src/core/hle/service/caps/caps_manager.h index f65eb12c1..44d85117f 100644 --- a/src/core/hle/service/caps/caps_manager.h +++ b/src/core/hle/service/caps/caps_manager.h @@ -58,6 +58,15 @@ public: std::vector<u8>& out_image, const AlbumFileId& file_id, const ScreenShotDecodeOption& decoder_options) const; + Result SaveScreenShot(ApplicationAlbumEntry& out_entry, const ScreenShotAttribute& attribute, + std::span<const u8> image_data, u64 aruid); + Result SaveScreenShot(ApplicationAlbumEntry& out_entry, const ScreenShotAttribute& attribute, + const ApplicationData& app_data, std::span<const u8> image_data, + u64 aruid); + Result SaveEditedScreenShot(ApplicationAlbumEntry& out_entry, + const ScreenShotAttribute& attribute, const AlbumFileId& file_id, + std::span<const u8> image_data); + private: static constexpr std::size_t NandAlbumFileLimit = 1000; static constexpr std::size_t SdAlbumFileLimit = 10000; @@ -67,6 +76,8 @@ private: Result GetAlbumEntry(AlbumEntry& out_entry, const std::filesystem::path& path) const; Result LoadImage(std::span<u8> out_image, const std::filesystem::path& path, int width, int height, ScreenShotDecoderFlag flag) const; + Result SaveImage(ApplicationAlbumEntry& out_entry, std::span<const u8> image, u64 title_id, + const AlbumFileDateTime& date) const; AlbumFileDateTime ConvertToAlbumDateTime(u64 posix_time) const; |