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

@ -83,10 +83,19 @@ namespace OWTrack
MessageBox.Show("Can not create save directory.\n" + e.Message);
}
if (saveManeger.saveExist())
{
try
{
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;
}
}