Only export registry if there are path definitions
This commit is contained in:
parent
fb9c89768d
commit
31b3c20717
1 changed files with 28 additions and 25 deletions
|
@ -160,6 +160,8 @@ namespace LANCommander.PlaynitePlugin.Services
|
|||
#endregion
|
||||
|
||||
#region Export registry keys
|
||||
if (manifest.SavePaths.Any(sp => sp.Type == "Registry"))
|
||||
{
|
||||
List<string> tempRegFiles = new List<string>();
|
||||
|
||||
var exportCommand = new StringBuilder();
|
||||
|
@ -188,6 +190,7 @@ namespace LANCommander.PlaynitePlugin.Services
|
|||
|
||||
zipStream.Write(regBuffer, 0, regBuffer.Length);
|
||||
zipStream.CloseEntry();
|
||||
}
|
||||
#endregion
|
||||
|
||||
var manifestEntry = new ZipEntry("_manifest.yml");
|
||||
|
|
Loading…
Add table
Reference in a new issue