diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/service/caps/caps_u.cpp | 25 | ||||
| -rw-r--r-- | src/core/hle/service/caps/caps_u.h | 1 |
2 files changed, 17 insertions, 9 deletions
diff --git a/src/core/hle/service/caps/caps_u.cpp b/src/core/hle/service/caps/caps_u.cpp index 8e2b83629..f9479bdb3 100644 --- a/src/core/hle/service/caps/caps_u.cpp +++ b/src/core/hle/service/caps/caps_u.cpp | |||
| @@ -41,7 +41,7 @@ CAPS_U::CAPS_U() : ServiceFramework("caps:u") { | |||
| 41 | {130, nullptr, "PrecheckToCreateContentsForApplication"}, | 41 | {130, nullptr, "PrecheckToCreateContentsForApplication"}, |
| 42 | {140, nullptr, "GetAlbumFileList1AafeAruidDeprecated"}, | 42 | {140, nullptr, "GetAlbumFileList1AafeAruidDeprecated"}, |
| 43 | {141, nullptr, "GetAlbumFileList2AafeUidAruidDeprecated"}, | 43 | {141, nullptr, "GetAlbumFileList2AafeUidAruidDeprecated"}, |
| 44 | {142, nullptr, "GetAlbumFileList3AaeAruid"}, | 44 | {142, &CAPS_U::GetAlbumFileList3AaeAruid, "GetAlbumFileList3AaeAruid"}, |
| 45 | {143, nullptr, "GetAlbumFileList4AaeUidAruid"}, | 45 | {143, nullptr, "GetAlbumFileList4AaeUidAruid"}, |
| 46 | {60002, nullptr, "OpenAccessorSessionForApplication"}, | 46 | {60002, nullptr, "OpenAccessorSessionForApplication"}, |
| 47 | }; | 47 | }; |
| @@ -77,17 +77,24 @@ void CAPS_U::GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& c | |||
| 77 | 77 | ||
| 78 | // TODO: Update this when we implement the album. | 78 | // TODO: Update this when we implement the album. |
| 79 | // Currently we do not have a method of accessing album entries, set this to 0 for now. | 79 | // Currently we do not have a method of accessing album entries, set this to 0 for now. |
| 80 | constexpr s32 total_entries{0}; | 80 | constexpr u32 total_entries_1{}; |
| 81 | constexpr u32 total_entries_2{}; | ||
| 81 | 82 | ||
| 82 | LOG_WARNING(Service_Capture, | 83 | LOG_WARNING( |
| 83 | "(STUBBED) called. pid={}, content_type={}, start_posix_time={}, " | 84 | Service_Capture, |
| 84 | "end_posix_time={}, applet_resource_user_id={}, total_entries={}", | 85 | "(STUBBED) called. pid={}, content_type={}, start_posix_time={}, " |
| 85 | pid, content_type, start_posix_time, end_posix_time, applet_resource_user_id, | 86 | "end_posix_time={}, applet_resource_user_id={}, total_entries_1={}, total_entries_2={}", |
| 86 | total_entries); | 87 | pid, content_type, start_posix_time, end_posix_time, applet_resource_user_id, |
| 88 | total_entries_1, total_entries_2); | ||
| 87 | 89 | ||
| 88 | IPC::ResponseBuilder rb{ctx, 3}; | 90 | IPC::ResponseBuilder rb{ctx, 4}; |
| 89 | rb.Push(RESULT_SUCCESS); | 91 | rb.Push(RESULT_SUCCESS); |
| 90 | rb.Push(total_entries); | 92 | rb.Push(total_entries_1); |
| 93 | rb.Push(total_entries_2); | ||
| 94 | } | ||
| 95 | |||
| 96 | void CAPS_U::GetAlbumFileList3AaeAruid(Kernel::HLERequestContext& ctx) { | ||
| 97 | GetAlbumContentsFileListForApplication(ctx); | ||
| 91 | } | 98 | } |
| 92 | 99 | ||
| 93 | } // namespace Service::Capture | 100 | } // namespace Service::Capture |
diff --git a/src/core/hle/service/caps/caps_u.h b/src/core/hle/service/caps/caps_u.h index e04e56bbc..4b80f3156 100644 --- a/src/core/hle/service/caps/caps_u.h +++ b/src/core/hle/service/caps/caps_u.h | |||
| @@ -20,6 +20,7 @@ public: | |||
| 20 | private: | 20 | private: |
| 21 | void SetShimLibraryVersion(Kernel::HLERequestContext& ctx); | 21 | void SetShimLibraryVersion(Kernel::HLERequestContext& ctx); |
| 22 | void GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& ctx); | 22 | void GetAlbumContentsFileListForApplication(Kernel::HLERequestContext& ctx); |
| 23 | void GetAlbumFileList3AaeAruid(Kernel::HLERequestContext& ctx); | ||
| 23 | }; | 24 | }; |
| 24 | 25 | ||
| 25 | } // namespace Service::Capture | 26 | } // namespace Service::Capture |