summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/caps/caps_a.cpp11
-rw-r--r--src/core/hle/service/caps/caps_a.h3
2 files changed, 13 insertions, 1 deletions
diff --git a/src/core/hle/service/caps/caps_a.cpp b/src/core/hle/service/caps/caps_a.cpp
index 47ff072c5..52228b830 100644
--- a/src/core/hle/service/caps/caps_a.cpp
+++ b/src/core/hle/service/caps/caps_a.cpp
@@ -16,7 +16,7 @@ IAlbumAccessorService::IAlbumAccessorService(Core::System& system_,
16 // clang-format off 16 // clang-format off
17 static const FunctionInfo functions[] = { 17 static const FunctionInfo functions[] = {
18 {0, nullptr, "GetAlbumFileCount"}, 18 {0, nullptr, "GetAlbumFileCount"},
19 {1, nullptr, "GetAlbumFileList"}, 19 {1, C<&IAlbumAccessorService::GetAlbumFileList>, "GetAlbumFileList"},
20 {2, nullptr, "LoadAlbumFile"}, 20 {2, nullptr, "LoadAlbumFile"},
21 {3, C<&IAlbumAccessorService::DeleteAlbumFile>, "DeleteAlbumFile"}, 21 {3, C<&IAlbumAccessorService::DeleteAlbumFile>, "DeleteAlbumFile"},
22 {4, nullptr, "StorageCopyAlbumFile"}, 22 {4, nullptr, "StorageCopyAlbumFile"},
@@ -62,6 +62,15 @@ IAlbumAccessorService::IAlbumAccessorService(Core::System& system_,
62 62
63IAlbumAccessorService::~IAlbumAccessorService() = default; 63IAlbumAccessorService::~IAlbumAccessorService() = default;
64 64
65Result IAlbumAccessorService::GetAlbumFileList(
66 Out<u64> out_count, AlbumStorage storage,
67 OutArray<AlbumEntry, BufferAttr_HipcMapAlias> out_entries) {
68 LOG_INFO(Service_Capture, "called, storage={}", storage);
69
70 const Result result = manager->GetAlbumFileList(out_entries, *out_count, storage, 0);
71 R_RETURN(TranslateResult(result));
72}
73
65Result IAlbumAccessorService::DeleteAlbumFile(AlbumFileId file_id) { 74Result IAlbumAccessorService::DeleteAlbumFile(AlbumFileId file_id) {
66 LOG_INFO(Service_Capture, "called, application_id=0x{:0x}, storage={}, type={}", 75 LOG_INFO(Service_Capture, "called, application_id=0x{:0x}, storage={}, type={}",
67 file_id.application_id, file_id.storage, file_id.type); 76 file_id.application_id, file_id.storage, file_id.type);
diff --git a/src/core/hle/service/caps/caps_a.h b/src/core/hle/service/caps/caps_a.h
index 2cb9b4547..c7a5208e3 100644
--- a/src/core/hle/service/caps/caps_a.h
+++ b/src/core/hle/service/caps/caps_a.h
@@ -21,6 +21,9 @@ public:
21 ~IAlbumAccessorService() override; 21 ~IAlbumAccessorService() override;
22 22
23private: 23private:
24 Result GetAlbumFileList(Out<u64> out_count, AlbumStorage storage,
25 OutArray<AlbumEntry, BufferAttr_HipcMapAlias> out_entries);
26
24 Result DeleteAlbumFile(AlbumFileId file_id); 27 Result DeleteAlbumFile(AlbumFileId file_id);
25 28
26 Result IsAlbumMounted(Out<bool> out_is_mounted, AlbumStorage storage); 29 Result IsAlbumMounted(Out<bool> out_is_mounted, AlbumStorage storage);