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_ss.cpp | |
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 'src/core/hle/service/caps/caps_ss.cpp')
-rw-r--r-- | src/core/hle/service/caps/caps_ss.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/core/hle/service/caps/caps_ss.cpp b/src/core/hle/service/caps/caps_ss.cpp index 1ba2b7972..eab023568 100644 --- a/src/core/hle/service/caps/caps_ss.cpp +++ b/src/core/hle/service/caps/caps_ss.cpp @@ -34,7 +34,7 @@ void IScreenShotService::SaveScreenShotEx0(HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; struct Parameters { ScreenShotAttribute attribute{}; - u32 report_option{}; + AlbumReportOption report_option{}; INSERT_PADDING_BYTES(0x4); u64 applet_resource_user_id{}; }; @@ -49,13 +49,16 @@ void IScreenShotService::SaveScreenShotEx0(HLERequestContext& ctx) { parameters.applet_resource_user_id); ApplicationAlbumEntry entry{}; - const auto result = manager->SaveScreenShot(entry, parameters.attribute, image_data_buffer, - parameters.applet_resource_user_id); + manager->FlipVerticallyOnWrite(false); + const auto result = + manager->SaveScreenShot(entry, parameters.attribute, parameters.report_option, + image_data_buffer, parameters.applet_resource_user_id); IPC::ResponseBuilder rb{ctx, 10}; rb.Push(result); rb.PushRaw(entry); } + void IScreenShotService::SaveEditedScreenShotEx1(HLERequestContext& ctx) { IPC::RequestParser rp{ctx}; struct Parameters { @@ -83,6 +86,7 @@ void IScreenShotService::SaveEditedScreenShotEx1(HLERequestContext& ctx) { image_data_buffer.size(), thumbnail_image_data_buffer.size()); ApplicationAlbumEntry entry{}; + manager->FlipVerticallyOnWrite(false); const auto result = manager->SaveEditedScreenShot(entry, parameters.attribute, parameters.file_id, image_data_buffer); |