| 812 | } |
| 813 | |
| 814 | bool Profile::invalidationActive(bool* supported) const |
| 815 | { |
| 816 | auto invalidation = m_GameFeatures.gameFeature<BSAInvalidation>(); |
| 817 | auto dataArchives = m_GameFeatures.gameFeature<DataArchives>(); |
| 818 | |
| 819 | if (supported != nullptr) { |
| 820 | *supported = ((invalidation != nullptr) && (dataArchives != nullptr)); |
| 821 | } |
| 822 | |
| 823 | return setting("", "AutomaticArchiveInvalidation", |
| 824 | Settings::instance().profileArchiveInvalidation()) |
| 825 | .toBool(); |
| 826 | } |
| 827 | |
| 828 | void Profile::deactivateInvalidation() |
| 829 | { |
no test coverage detected