Firmware install: Create flash1/vsh/theme

The shell refuses to install a theme without it, and the updater's archive doesn't have it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-11-06 14:01:34 +01:00
1 parent 8c31d80b8b
commit a0af2bc403
1 file changed
+7
+7
View File
@@ -1747,6 +1747,13 @@ bool InstallFirmware(const Path &updater, const Path &nandRoot, const PSARUnpack
ok = SwapStagingIntoPlace(nandRoot, staging, error);
}
if (ok) {
// The shell refuses to install a theme without this directory, and the updater's archive
// doesn't have it (6.61's has nothing under flash1), so the real updater must create it.
const Path themeDir = nandRoot / "flash1/vsh/theme";
if (!File::CreateFullPath(themeDir)) {
WARN_LOG(Log::Loader, "Couldn't create %s", themeDir.c_str());
}
g_Config.iSceRegCategoryVersion = SceRegCategoryVersionAfterInstall(g_Config.iSceRegCategoryVersion, SceRegCategoryVersionForFirmware(stats->firmwareVersion));
}