1.4.3 #38
@ -83,10 +83,19 @@ namespace OWTrack
|
|||||||
MessageBox.Show("Can not create save directory.\n" + e.Message);
|
MessageBox.Show("Can not create save directory.\n" + e.Message);
|
||||||
}
|
}
|
||||||
if (saveManeger.saveExist())
|
if (saveManeger.saveExist())
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
tr = saveManeger.GetSavedTracker();
|
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.startSR > 0) SRonce = true;
|
||||||
if (tr.settings.GamePath == "" || tr.settings.GamePath == null)
|
if (tr.settings.GamePath == "" || tr.settings.GamePath == null)
|
||||||
{
|
{
|
||||||
|
@ -55,9 +55,10 @@ namespace OWTrack
|
|||||||
{
|
{
|
||||||
return JsonConvert.DeserializeObject<Tracker>(File.ReadAllText(Paths.GetSaves()));
|
return JsonConvert.DeserializeObject<Tracker>(File.ReadAllText(Paths.GetSaves()));
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
throw e;
|
Exception ex = new Exception("json");
|
||||||
|
throw ex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user