diff options
| author | Franco M <francomaro@gmail.com> | 2023-10-26 19:11:15 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-26 19:11:15 -0300 |
| commit | b5415b687203599fe18e2cefc78700e4c6f2ae7c (patch) | |
| tree | ddd4c82cab9e367cdcf2bbf4a1d444f85ed0b02e /src/core/hle/service/caps/caps_manager.h | |
| parent | b76a1d987ff83b831a19a0c19f9fcd96c504c077 (diff) | |
| parent | 43be2bfe332d5537041262eb08037993239eaf5f (diff) | |
Merge branch 'yuzu-emu:master' into new-shortcut
Diffstat (limited to 'src/core/hle/service/caps/caps_manager.h')
| -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; |
