Only export registry if there are path definitions

This commit is contained in:
Pat Hartl 2023-03-30 20:27:35 -05:00
parent fb9c89768d
commit 31b3c20717

View file

@ -160,6 +160,8 @@ namespace LANCommander.PlaynitePlugin.Services
#endregion #endregion
#region Export registry keys #region Export registry keys
if (manifest.SavePaths.Any(sp => sp.Type == "Registry"))
{
List<string> tempRegFiles = new List<string>(); List<string> tempRegFiles = new List<string>();
var exportCommand = new StringBuilder(); var exportCommand = new StringBuilder();
@ -188,6 +190,7 @@ namespace LANCommander.PlaynitePlugin.Services
zipStream.Write(regBuffer, 0, regBuffer.Length); zipStream.Write(regBuffer, 0, regBuffer.Length);
zipStream.CloseEntry(); zipStream.CloseEntry();
}
#endregion #endregion
var manifestEntry = new ZipEntry("_manifest.yml"); var manifestEntry = new ZipEntry("_manifest.yml");