mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-13 20:52:15 +02:00
ncm: fix dangling fsdev usage
This commit is contained in:
parent
a397853e3b
commit
524582fd7d
@ -294,7 +294,7 @@ namespace ams::ncm {
|
|||||||
Result ContentMetaDatabaseImpl::Commit() {
|
Result ContentMetaDatabaseImpl::Commit() {
|
||||||
R_TRY(this->EnsureEnabled());
|
R_TRY(this->EnsureEnabled());
|
||||||
R_TRY(this->kvs->Save());
|
R_TRY(this->kvs->Save());
|
||||||
return fsdevCommitDevice(this->mount_name);
|
return fs::CommitSaveData(this->mount_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result ContentMetaDatabaseImpl::HasContent(sf::Out<bool> out, const ContentMetaKey &key, const ContentId &content_id) {
|
Result ContentMetaDatabaseImpl::HasContent(sf::Out<bool> out, const ContentMetaKey &key, const ContentId &content_id) {
|
||||||
|
@ -72,6 +72,7 @@ void __appInit(void) {
|
|||||||
|
|
||||||
sm::DoWithSession([&]() {
|
sm::DoWithSession([&]() {
|
||||||
R_ABORT_UNLESS(fsInitialize());
|
R_ABORT_UNLESS(fsInitialize());
|
||||||
|
R_ABORT_UNLESS(splInitialize());
|
||||||
});
|
});
|
||||||
|
|
||||||
ams::CheckApiVersion();
|
ams::CheckApiVersion();
|
||||||
@ -79,7 +80,7 @@ void __appInit(void) {
|
|||||||
|
|
||||||
void __appExit(void) {
|
void __appExit(void) {
|
||||||
/* Cleanup services. */
|
/* Cleanup services. */
|
||||||
fsdevUnmountAll();
|
splExit();
|
||||||
fsExit();
|
fsExit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user