summaryrefslogtreecommitdiffstats
path: root/src/frontend_common
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-18 05:18:00 +0100
committerGitHub <noreply@github.com>2024-02-18 05:18:00 +0100
commitbdf8aca7509534f817644ce05e95d5f5c1f53941 (patch)
treee2ebd062a528b0ace705130763569851632accf9 /src/frontend_common
parentMerge pull request #13054 from t895/lifecycle-utils (diff)
parentAdd check for corrupted firmware files after install. (diff)
downloadyuzu-bdf8aca7509534f817644ce05e95d5f5c1f53941.tar
yuzu-bdf8aca7509534f817644ce05e95d5f5c1f53941.tar.gz
yuzu-bdf8aca7509534f817644ce05e95d5f5c1f53941.tar.bz2
yuzu-bdf8aca7509534f817644ce05e95d5f5c1f53941.tar.lz
yuzu-bdf8aca7509534f817644ce05e95d5f5c1f53941.tar.xz
yuzu-bdf8aca7509534f817644ce05e95d5f5c1f53941.tar.zst
yuzu-bdf8aca7509534f817644ce05e95d5f5c1f53941.zip
Diffstat (limited to 'src/frontend_common')
-rw-r--r--src/frontend_common/content_manager.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend_common/content_manager.h b/src/frontend_common/content_manager.h
index f3efe3465..c4e97a47b 100644
--- a/src/frontend_common/content_manager.h
+++ b/src/frontend_common/content_manager.h
@@ -251,11 +251,12 @@ inline InstallResult InstallNCA(FileSys::VfsFilesystem& vfs, const std::string&
* \param callback Callback to report the progress of the installation. The first size_t
* parameter is the total size of the installed contents and the second is the current progress. If
* you return true to the callback, it will cancel the installation as soon as possible.
+ * \param firmware_only Set to true to only scan system nand NCAs (firmware), post firmware install.
* \return A list of entries that failed to install. Returns an empty vector if successful.
*/
inline std::vector<std::string> VerifyInstalledContents(
Core::System& system, FileSys::ManualContentProvider& provider,
- const std::function<bool(size_t, size_t)>& callback) {
+ const std::function<bool(size_t, size_t)>& callback, bool firmware_only = false) {
// Get content registries.
auto bis_contents = system.GetFileSystemController().GetSystemNANDContents();
auto user_contents = system.GetFileSystemController().GetUserNANDContents();
@@ -264,7 +265,7 @@ inline std::vector<std::string> VerifyInstalledContents(
if (bis_contents) {
content_providers.push_back(bis_contents);
}
- if (user_contents) {
+ if (user_contents && !firmware_only) {
content_providers.push_back(user_contents);
}