mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
ncm: make *ActivateContentMetaDatabase play nice with 1.0.0
This commit is contained in:
parent
9efca346d9
commit
499f29d2f0
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue