This commit is contained in:
HeshamTB 2018-12-22 00:17:23 +03:00
parent 9176bf903c
commit 44595496be
2 changed files with 13 additions and 3 deletions

View File

@ -86,7 +86,16 @@ namespace OWTrack
{
try
{
tr = saveManeger.GetSavedTracker();
try
{
tr = saveManeger.GetSavedTracker();
}
catch (Exception)
{
MessageBox.Show("Could not load Save.\n" +
"Starting new save.");
tr = new Tracker();
}
if (tr.startSR > 0) SRonce = true;
if (tr.settings.GamePath == "" || tr.settings.GamePath == null)
{

View File

@ -55,9 +55,10 @@ namespace OWTrack
{
return JsonConvert.DeserializeObject<Tracker>(File.ReadAllText(Paths.GetSaves()));
}
catch (Exception e)
catch (Exception)
{
throw e;
Exception ex = new Exception("json");
throw ex;
}
}