release/0.6.0 #2

Merged
Ray merged 7 commits from release/0.6.0 into master 2024-07-20 21:52:48 +00:00
Showing only changes of commit 52fe954e25 - Show all commits

View File

@ -654,6 +654,11 @@ namespace FizzyLauncher
case ".jsnx":
this.CurrentSession = await RyzStudio.IO.Compression.ZFile.ReadFile<AppOptions>(filename, "Document.json");
if (this.CurrentSession == null)
{
this.CurrentSession = new AppOptions();
}
// Load icons
this.CurrentSession = await LoadIconsFromZipFile(filename, this.CurrentSession);
@ -997,14 +1002,20 @@ namespace FizzyLauncher
zipEntry = archive.CreateEntry(key, CompressionLevel.SmallestSize);
using (Stream entryStream = zipEntry.Open())
try
{
using (Image image = item.Icon)
using (Stream entryStream = zipEntry.Open())
{
image.Save(entryStream, ImageFormat.Png);
using (Image image = item.Icon)
{
image.Save(entryStream, ImageFormat.Png);
}
}
}
catch (Exception)
{
continue;
}
}
}
}