ncm: first pass at ContentManagerImpl refactor (missing the IntegratedImpls, won't link)

This commit is contained in:
Michael Scire
2023-02-22 13:59:05 -07:00
committed by SciresM
parent d64ab354ad
commit 668cabd4a2
9 changed files with 1190 additions and 364 deletions

View File

@@ -21,9 +21,10 @@ namespace ams::ncm {
struct ContentManagerConfig {
bool build_system_database;
bool import_database_from_system_on_sd;
bool enable_integrated_system_content;
bool HasAnyConfig() const {
return this->ShouldBuildDatabase() || this->import_database_from_system_on_sd;
return this->ShouldBuildDatabase() || this->import_database_from_system_on_sd || this->enable_integrated_system_content;
}
bool ShouldBuildDatabase() const {
@@ -33,6 +34,10 @@ namespace ams::ncm {
bool ShouldImportDatabaseFromSignedSystemPartitionOnSd() const {
return this->import_database_from_system_on_sd;
}
bool IsIntegratedSystemContentEnabled() const {
return this->enable_integrated_system_content;
}
};
}