Added support for compressed session file

This commit is contained in:
Ray committed 2024-07-12 23:54:44 +01:00
1 parent e9c0a7018a
commit 0a5d05a0bb
8 files changed
+78 -36

No files matched your search

+12 -5
View File
@@ -66,11 +66,7 @@ namespace RokettoLaunch.Windows.Forms
{
if ((fileList?.Length ?? 0) > 0)
{
var model = GetTileModel(fileList[0]);
if (model != null)
{
LoadInfo(model);
}
LoadInfo(fileList[0]);
}
}
}
@@ -137,6 +133,17 @@ namespace RokettoLaunch.Windows.Forms
toolTip1.SetToolTip(this, this.Title);
}
public void LoadInfo(string filename)
{
var model = GetTileModel(filename);
if (model == null)
{
return;
}
LoadInfo(model);
}
private void Execute(TileModel model)
{
if (model == null)