1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-22 20:06:40 +00:00

ncm: make *ActivateContentMetaDatabase play nice with 1.0.0

This commit is contained in:
Michael Scire 2020-07-07 20:00:51 -07:00
parent 9efca346d9
commit 499f29d2f0

View file

@ -88,10 +88,14 @@ namespace ams::ncm {
}
Result ActivateContentMetaDatabase(StorageId storage_id) {
/* On < 2.0.0, this command doesn't exist, and databases are activated as needed on open. */
R_SUCCEED_IF(hos::GetVersion() < hos::Version_2_0_0);
return g_content_manager->ActivateContentMetaDatabase(storage_id);
}
Result InactivateContentMetaDatabase(StorageId storage_id) {
/* On < 2.0.0, this command doesn't exist. */
R_SUCCEED_IF(hos::GetVersion() < hos::Version_2_0_0);
return g_content_manager->InactivateContentMetaDatabase(storage_id);
}