Improved LoadSave Function
This commit is contained in:
parent
20d6844f2d
commit
5d7640c0f0
@ -87,22 +87,14 @@ namespace OWTrack
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
using (StreamReader st = new StreamReader(Paths.GetSaves()))
|
tr = saveManeger.GetSavedTracker();
|
||||||
|
if (tr.startSR > 0) SRonce = true;
|
||||||
|
if (tr.settings.GamePath == "" || tr.settings.GamePath == null)
|
||||||
{
|
{
|
||||||
string line = st.ReadToEnd();
|
if (!tr.LoacteOW())
|
||||||
if (line.Contains("Overwatch.exe"))
|
|
||||||
{
|
{
|
||||||
tr = saveManeger.GetSavedTracker();
|
tr.settings.GamePath = askForGamePath();
|
||||||
if (tr.startSR > 0) SRonce = true;
|
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
if (!tr.LoacteOW())
|
|
||||||
{
|
|
||||||
tr.settings.GamePath = askForGamePath();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
st.Close();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
Loading…
Reference in New Issue
Block a user