mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-18 08:11:21 +00:00
ncm: make *ActivateContentMetaDatabase play nice with 1.0.0
This commit is contained in:
parent
9efca346d9
commit
499f29d2f0
@ -88,10 +88,14 @@ namespace ams::ncm {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result ActivateContentMetaDatabase(StorageId storage_id) {
|
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);
|
return g_content_manager->ActivateContentMetaDatabase(storage_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
Result InactivateContentMetaDatabase(StorageId 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);
|
return g_content_manager->InactivateContentMetaDatabase(storage_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user