Fixed List implementation. Also lots of debug logging.

This commit is contained in:
Adubbz
2019-08-06 18:31:46 +10:00
parent 6e5c0bde51
commit 4e75776112
5 changed files with 43 additions and 6 deletions

View File

@@ -47,6 +47,7 @@ namespace sts::ncm {
Result ContentManagerService::OpenContentStorage(Out<std::shared_ptr<IContentStorage>> out, StorageId storage_id) {
R_DEBUG_START
D_LOG("storage id: 0x%x\n", storage_id);
std::shared_ptr<IContentStorage> content_storage;
R_TRY(impl::OpenContentStorage(&content_storage, storage_id));
out.SetValue(std::move(content_storage));
@@ -56,6 +57,7 @@ namespace sts::ncm {
Result ContentManagerService::OpenContentMetaDatabase(Out<std::shared_ptr<IContentMetaDatabase>> out, StorageId storage_id) {
R_DEBUG_START
D_LOG("storage id: 0x%x\n", storage_id);
std::shared_ptr<IContentMetaDatabase> content_meta_database;
R_TRY(impl::OpenContentMetaDatabase(&content_meta_database, storage_id));
out.SetValue(std::move(content_meta_database));