Don't try to upload games if no save path definition file exists
This commit is contained in:
parent
f52ffc5426
commit
9388b5b630
1 changed files with 65 additions and 62 deletions
|
@ -168,6 +168,8 @@ namespace LANCommander.PlaynitePlugin.Services
|
||||||
var manifest = deserializer.Deserialize<GameManifest>(File.ReadAllText(manifestPath));
|
var manifest = deserializer.Deserialize<GameManifest>(File.ReadAllText(manifestPath));
|
||||||
var temp = Path.GetTempFileName();
|
var temp = Path.GetTempFileName();
|
||||||
|
|
||||||
|
if (manifest.SavePaths != null && manifest.SavePaths.Count() > 0)
|
||||||
|
{
|
||||||
using (var archive = ZipArchive.Create())
|
using (var archive = ZipArchive.Create())
|
||||||
{
|
{
|
||||||
archive.DeflateCompressionLevel = SharpCompress.Compressors.Deflate.CompressionLevel.BestCompression;
|
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)
|
private void AddDirectoryToZip(ZipArchive zipArchive, string path, string workingDirectory, Guid pathId)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue