增加版本检测

This commit is contained in:
ww-rm
2025-03-16 16:12:36 +08:00
parent c228cf9072
commit c622b60215
4 changed files with 20 additions and 7 deletions

View File

@@ -69,10 +69,7 @@ namespace SpineViewer.Controls
{
Program.Logger.Error(ex.ToString());
Program.Logger.Error("Failed to load {} {}", dialog.SkelPath, dialog.AtlasPath);
if (ex is NotImplementedException)
MessageBox.Show($"{dialog.Version.String()} 版本尚未实现(咕咕咕~", "错误信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
else
MessageBox.Show(ex.ToString(), "骨骼加载失败", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show(ex.ToString(), "骨骼加载失败", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
Program.Logger.Info($"Current memory usage: {Program.Process.WorkingSet64 / 1024.0 / 1024.0:F2} MB");