diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-29 05:29:06 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2024-01-30 03:35:45 +0100 |
commit | 4afca6bf5de516961c4109ca363c437c9da2e677 (patch) | |
tree | ea1afe7284facdcb20dae7f887ebe6697392b785 /src/core/hle/service/caps/caps_su.h | |
parent | Merge pull request #12843 from t895/system-driver-whoops (diff) | |
download | yuzu-4afca6bf5de516961c4109ca363c437c9da2e677.tar yuzu-4afca6bf5de516961c4109ca363c437c9da2e677.tar.gz yuzu-4afca6bf5de516961c4109ca363c437c9da2e677.tar.bz2 yuzu-4afca6bf5de516961c4109ca363c437c9da2e677.tar.lz yuzu-4afca6bf5de516961c4109ca363c437c9da2e677.tar.xz yuzu-4afca6bf5de516961c4109ca363c437c9da2e677.tar.zst yuzu-4afca6bf5de516961c4109ca363c437c9da2e677.zip |
Diffstat (limited to 'src/core/hle/service/caps/caps_su.h')
-rw-r--r-- | src/core/hle/service/caps/caps_su.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/core/hle/service/caps/caps_su.h b/src/core/hle/service/caps/caps_su.h index 21912e95f..4b4cbd09e 100644 --- a/src/core/hle/service/caps/caps_su.h +++ b/src/core/hle/service/caps/caps_su.h @@ -3,6 +3,8 @@ #pragma once +#include "core/hle/service/caps/caps_types.h" +#include "core/hle/service/cmif_types.h" #include "core/hle/service/service.h" namespace Core { @@ -26,9 +28,19 @@ private: 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); + Result SetShimLibraryVersion(ShimLibraryVersion library_version, + ClientAppletResourceUserId aruid); + Result SaveScreenShotEx0( + Out<ApplicationAlbumEntry> out_entry, const ScreenShotAttribute& attribute, + AlbumReportOption report_option, ClientAppletResourceUserId aruid, + InBuffer<BufferAttr_HipcMapTransferAllowsNonSecure | BufferAttr_HipcMapAlias> + image_data_buffer); + Result SaveScreenShotEx1( + Out<ApplicationAlbumEntry> out_entry, const ScreenShotAttribute& attribute, + AlbumReportOption report_option, ClientAppletResourceUserId aruid, + const InLargeData<ApplicationData, BufferAttr_HipcMapAlias> app_data_buffer, + const InBuffer<BufferAttr_HipcMapTransferAllowsNonSecure | BufferAttr_HipcMapAlias> + image_data_buffer); std::array<u8, screenshot_width * screenshot_height * bytes_per_pixel> image_data; |