mirror of
https://github.com/starr-dusT/yuzu-mainline
synced 2024-03-05 21:12:25 -08:00
caps_u: Fix GetAlbumContentsFileListForApplication stub
This commit is contained in:
parent
3017be7855
commit
72f14ae21f
@ -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
|
// 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).
|
// output entries (which is copied to a s32 by official SW).
|
||||||
IPC::RequestParser rp{ctx};
|
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 pid = rp.Pop<s32>();
|
const auto content_type{rp.PopEnum<ContentType>()};
|
||||||
const auto content_type = rp.PopRaw<ContentType>();
|
const auto start_posix_time{rp.Pop<s64>()};
|
||||||
[[maybe_unused]] const auto start_datetime = rp.PopRaw<AlbumFileDateTime>();
|
const auto end_posix_time{rp.Pop<s64>()};
|
||||||
[[maybe_unused]] const auto end_datetime = rp.PopRaw<AlbumFileDateTime>();
|
const auto applet_resource_user_id{rp.Pop<u64>()};
|
||||||
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,
|
LOG_WARNING(Service_Capture,
|
||||||
"(STUBBED) called. pid={}, content_type={}, applet_resource_user_id={}", pid,
|
"(STUBBED) called. pid={}, content_type={}, start_posix_time={}, "
|
||||||
content_type, applet_resource_user_id);
|
"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};
|
IPC::ResponseBuilder rb{ctx, 3};
|
||||||
rb.Push(RESULT_SUCCESS);
|
rb.Push(RESULT_SUCCESS);
|
||||||
rb.Push<s32>(0);
|
rb.Push(total_entries);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Service::Capture
|
} // namespace Service::Capture
|
||||||
|
Loading…
Reference in New Issue
Block a user