diff options
author | bunnei <bunneidev@gmail.com> | 2020-06-27 06:09:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 06:09:32 +0200 |
commit | 6f16f54f104e88067bf5acb38ee8fbba4f63b5c7 (patch) | |
tree | 3ae1c9adee7eb3926bbe2b03edae5eaa94814990 /src/core/hle/service/caps/caps_u.cpp | |
parent | Merge pull request #4152 from ogniK5377/ipc-err (diff) | |
parent | caps_u: Fix GetAlbumContentsFileListForApplication stub (diff) | |
download | yuzu-6f16f54f104e88067bf5acb38ee8fbba4f63b5c7.tar yuzu-6f16f54f104e88067bf5acb38ee8fbba4f63b5c7.tar.gz yuzu-6f16f54f104e88067bf5acb38ee8fbba4f63b5c7.tar.bz2 yuzu-6f16f54f104e88067bf5acb38ee8fbba4f63b5c7.tar.lz yuzu-6f16f54f104e88067bf5acb38ee8fbba4f63b5c7.tar.xz yuzu-6f16f54f104e88067bf5acb38ee8fbba4f63b5c7.tar.zst yuzu-6f16f54f104e88067bf5acb38ee8fbba4f63b5c7.zip |
Diffstat (limited to 'src/core/hle/service/caps/caps_u.cpp')
-rw-r--r-- | src/core/hle/service/caps/caps_u.cpp | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/src/core/hle/service/caps/caps_u.cpp b/src/core/hle/service/caps/caps_u.cpp index 78bab6ed8..f36d8de2d 100644 --- a/src/core/hle/service/caps/caps_u.cpp +++ b/src/core/hle/service/caps/caps_u.cpp @@ -1,4 +1,4 @@ -// Copyright 2020 yuzu emulator team +// Copyright 2020 yuzu Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. @@ -58,19 +58,25 @@ void CAPS_U::GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& c // u8 ContentType, two s64s, and an u64 AppletResourceUserId. Returns an output u64 for total // output entries (which is copied to a s32 by official SW). IPC::RequestParser rp{ctx}; - [[maybe_unused]] const auto application_album_file_entries = rp.PopRaw<std::array<u8, 0x30>>(); - const auto pid = rp.Pop<s32>(); - const auto content_type = rp.PopRaw<ContentType>(); - [[maybe_unused]] const auto start_datetime = rp.PopRaw<AlbumFileDateTime>(); - [[maybe_unused]] const auto end_datetime = rp.PopRaw<AlbumFileDateTime>(); - const auto applet_resource_user_id = rp.Pop<u64>(); + const auto pid{rp.Pop<s32>()}; + const auto content_type{rp.PopEnum<ContentType>()}; + const auto start_posix_time{rp.Pop<s64>()}; + const auto end_posix_time{rp.Pop<s64>()}; + const auto applet_resource_user_id{rp.Pop<u64>()}; + + // TODO: Update this when we implement the album. + // Currently we do not have a method of accessing album entries, set this to 0 for now. + constexpr s32 total_entries{0}; + LOG_WARNING(Service_Capture, - "(STUBBED) called. pid={}, content_type={}, applet_resource_user_id={}", pid, - content_type, applet_resource_user_id); + "(STUBBED) called. pid={}, content_type={}, start_posix_time={}, " + "end_posix_time={}, applet_resource_user_id={}, total_entries={}", + pid, content_type, start_posix_time, end_posix_time, applet_resource_user_id, + total_entries); IPC::ResponseBuilder rb{ctx, 3}; rb.Push(RESULT_SUCCESS); - rb.Push<s32>(0); + rb.Push(total_entries); } } // namespace Service::Capture |