Fixed #37
This commit is contained in:
parent
9176bf903c
commit
44595496be
@ -86,7 +86,16 @@ namespace OWTrack
|
|||||||
{
|
{
|
||||||
try
|
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.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