From 524582fd7df74d76dd1ceb58c4c97407d5fc6edd Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 4 Mar 2020 20:59:30 -0800 Subject: [PATCH] ncm: fix dangling fsdev usage --- stratosphere/ncm/source/ncm_content_meta_database_impl.cpp | 2 +- stratosphere/ncm/source/ncm_main.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stratosphere/ncm/source/ncm_content_meta_database_impl.cpp b/stratosphere/ncm/source/ncm_content_meta_database_impl.cpp index 86411dffc..735c49847 100644 --- a/stratosphere/ncm/source/ncm_content_meta_database_impl.cpp +++ b/stratosphere/ncm/source/ncm_content_meta_database_impl.cpp @@ -294,7 +294,7 @@ namespace ams::ncm { Result ContentMetaDatabaseImpl::Commit() { R_TRY(this->EnsureEnabled()); R_TRY(this->kvs->Save()); - return fsdevCommitDevice(this->mount_name); + return fs::CommitSaveData(this->mount_name); } Result ContentMetaDatabaseImpl::HasContent(sf::Out out, const ContentMetaKey &key, const ContentId &content_id) { diff --git a/stratosphere/ncm/source/ncm_main.cpp b/stratosphere/ncm/source/ncm_main.cpp index ade855866..5b6d69e8a 100644 --- a/stratosphere/ncm/source/ncm_main.cpp +++ b/stratosphere/ncm/source/ncm_main.cpp @@ -72,6 +72,7 @@ void __appInit(void) { sm::DoWithSession([&]() { R_ABORT_UNLESS(fsInitialize()); + R_ABORT_UNLESS(splInitialize()); }); ams::CheckApiVersion(); @@ -79,7 +80,7 @@ void __appInit(void) { void __appExit(void) { /* Cleanup services. */ - fsdevUnmountAll(); + splExit(); fsExit(); }