Improved LoadSave Function

This commit is contained in:
HeshamTB 2018-12-21 18:17:47 +03:00
parent 20d6844f2d
commit 5d7640c0f0

View File

@ -86,24 +86,16 @@ namespace OWTrack
if (saveManeger.saveExist())
{
try
{
using (StreamReader st = new StreamReader(Paths.GetSaves()))
{
string line = st.ReadToEnd();
if (line.Contains("Overwatch.exe"))
{
tr = saveManeger.GetSavedTracker();
if (tr.startSR > 0) SRonce = true;
}
else
if (tr.settings.GamePath == "" || tr.settings.GamePath == null)
{
if (!tr.LoacteOW())
{
tr.settings.GamePath = askForGamePath();
}
}
st.Close();
}
}
catch (Exception e)
{