Don't try to upload games if no save path definition file exists

This commit is contained in:
Pat Hartl 2023-08-27 23:22:44 -05:00
parent f52ffc5426
commit 9388b5b630

View file

@ -168,6 +168,8 @@ namespace LANCommander.PlaynitePlugin.Services
var manifest = deserializer.Deserialize<GameManifest>(File.ReadAllText(manifestPath));
var temp = Path.GetTempFileName();
if (manifest.SavePaths != null && manifest.SavePaths.Count() > 0)
{
using (var archive = ZipArchive.Create())
{
archive.DeflateCompressionLevel = SharpCompress.Compressors.Deflate.CompressionLevel.BestCompression;
@ -246,6 +248,7 @@ namespace LANCommander.PlaynitePlugin.Services
}
}
}
}
private void AddDirectoryToZip(ZipArchive zipArchive, string path, string workingDirectory, Guid pathId)
{