release/0.6.0 #2
13
MainForm.cs
13
MainForm.cs
@ -654,6 +654,11 @@ namespace FizzyLauncher
|
|||||||
case ".jsnx":
|
case ".jsnx":
|
||||||
this.CurrentSession = await RyzStudio.IO.Compression.ZFile.ReadFile<AppOptions>(filename, "Document.json");
|
this.CurrentSession = await RyzStudio.IO.Compression.ZFile.ReadFile<AppOptions>(filename, "Document.json");
|
||||||
|
|
||||||
|
if (this.CurrentSession == null)
|
||||||
|
{
|
||||||
|
this.CurrentSession = new AppOptions();
|
||||||
|
}
|
||||||
|
|
||||||
// Load icons
|
// Load icons
|
||||||
this.CurrentSession = await LoadIconsFromZipFile(filename, this.CurrentSession);
|
this.CurrentSession = await LoadIconsFromZipFile(filename, this.CurrentSession);
|
||||||
|
|
||||||
@ -997,6 +1002,8 @@ namespace FizzyLauncher
|
|||||||
|
|
||||||
zipEntry = archive.CreateEntry(key, CompressionLevel.SmallestSize);
|
zipEntry = archive.CreateEntry(key, CompressionLevel.SmallestSize);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
using (Stream entryStream = zipEntry.Open())
|
using (Stream entryStream = zipEntry.Open())
|
||||||
{
|
{
|
||||||
using (Image image = item.Icon)
|
using (Image image = item.Icon)
|
||||||
@ -1004,7 +1011,11 @@ namespace FizzyLauncher
|
|||||||
image.Save(entryStream, ImageFormat.Png);
|
image.Save(entryStream, ImageFormat.Png);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user