mirror of
https://github.com/kwsch/NHSE.git
synced 2026-09-07 18:55:18 -05:00
Trycatch save export
yay write protected/unplugged SD cards or bad sizes
This commit is contained in:
@@ -29,7 +29,17 @@ private void Menu_Open_Click(object sender, EventArgs e)
|
||||
private void Menu_Save_Click(object sender, EventArgs e)
|
||||
{
|
||||
SaveAll();
|
||||
SAV.Save((uint)DateTime.Now.Ticks);
|
||||
try
|
||||
{
|
||||
SAV.Save((uint) DateTime.Now.Ticks);
|
||||
}
|
||||
#pragma warning disable CA1031 // Do not catch general exception types
|
||||
catch (Exception ex)
|
||||
#pragma warning restore CA1031 // Do not catch general exception types
|
||||
{
|
||||
WinFormsUtil.Error("Unable to save files to their original location.", ex.Message);
|
||||
return;
|
||||
}
|
||||
WinFormsUtil.Alert("Saved all save data!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user