This commit is contained in:
HeshamTB 2018-11-24 03:24:50 +03:00
parent fdfd400d0a
commit 6e7de80233
2 changed files with 5 additions and 9 deletions

View File

@ -92,7 +92,7 @@ namespace OWTrack
if (line.Contains("Overwatch.exe")) if (line.Contains("Overwatch.exe"))
{ {
tr = saveManeger.GetSavedTracker(); tr = saveManeger.GetSavedTracker();
st.Close(); if (tr.startSR > 0) SRonce = true;
} }
else else
{ {
@ -100,9 +100,8 @@ namespace OWTrack
{ {
tr.gamePath = getGamePath(); tr.gamePath = getGamePath();
} }
st.Close();
} }
st.Close();
} }
} }
catch (Exception e) catch (Exception e)
@ -125,13 +124,12 @@ namespace OWTrack
openFileDialog1.DefaultExt = "exe"; openFileDialog1.DefaultExt = "exe";
openFileDialog1.Filter = "exe Files (*.exe)|*.exe|All files (*.*)|*.*"; openFileDialog1.Filter = "exe Files (*.exe)|*.exe|All files (*.*)|*.*";
DialogResult result = openFileDialog1.ShowDialog(); DialogResult result = openFileDialog1.ShowDialog();
if (result == DialogResult.OK) if (result == DialogResult.OK)
{ {
MessageBox.Show("Saved Overwatch.exe location.\nPress Clear to rest"); MessageBox.Show("Saved Overwatch.exe location.\nPress Clear to rest");
return openFileDialog1.FileName; return openFileDialog1.FileName;
} }
else { return null; } else return null;
} }
private void SRSystem(bool state) private void SRSystem(bool state)

View File

@ -109,9 +109,7 @@ namespace OWTrack
gamePath = paths[0]; gamePath = paths[0];
return true; return true;
} }
else return false; else return false;
} }
catch (Exception e) catch (Exception e)
{ {