@ -28,14 +28,16 @@ namespace OWTrack
 | 
			
		||||
{
 | 
			
		||||
    public partial class MainForm : Form
 | 
			
		||||
    {
 | 
			
		||||
        Tracker tr = new Tracker();
 | 
			
		||||
        Tracker tr;
 | 
			
		||||
        private const string IS_RUNNING = "Running";
 | 
			
		||||
        private const string NOT_RUNNING = " Not running";
 | 
			
		||||
        private bool SRonce = false;
 | 
			
		||||
		int dummy = 0;
 | 
			
		||||
 | 
			
		||||
        public MainForm()
 | 
			
		||||
        {
 | 
			
		||||
            InitializeComponent();
 | 
			
		||||
            tr = new Tracker();
 | 
			
		||||
            loadSave();
 | 
			
		||||
            checkStatus();
 | 
			
		||||
            update();
 | 
			
		||||
@ -90,7 +92,7 @@ namespace OWTrack
 | 
			
		||||
                        if (line.Contains("Overwatch.exe"))
 | 
			
		||||
                        {
 | 
			
		||||
                            tr = saveManeger.GetSavedTracker();
 | 
			
		||||
                            st.Close();                            
 | 
			
		||||
                            if (tr.startSR > 0) SRonce = true;                    
 | 
			
		||||
                        }
 | 
			
		||||
                        else
 | 
			
		||||
                        {
 | 
			
		||||
@ -98,9 +100,8 @@ namespace OWTrack
 | 
			
		||||
                            {
 | 
			
		||||
                                tr.gamePath = getGamePath();
 | 
			
		||||
                            }                           
 | 
			
		||||
                            st.Close();
 | 
			
		||||
                        }
 | 
			
		||||
 | 
			
		||||
                        st.Close();
 | 
			
		||||
                    }
 | 
			
		||||
                }                
 | 
			
		||||
                catch (Exception e)
 | 
			
		||||
@ -123,16 +124,12 @@ namespace OWTrack
 | 
			
		||||
            openFileDialog1.DefaultExt = "exe";
 | 
			
		||||
            openFileDialog1.Filter = "exe Files (*.exe)|*.exe|All files (*.*)|*.*";           
 | 
			
		||||
            DialogResult result = openFileDialog1.ShowDialog();
 | 
			
		||||
 | 
			
		||||
            if (result == DialogResult.OK)
 | 
			
		||||
            {
 | 
			
		||||
                MessageBox.Show("Saved Overwatch.exe location.\nPress Clear to rest");
 | 
			
		||||
                return openFileDialog1.FileName;
 | 
			
		||||
            }
 | 
			
		||||
            else 
 | 
			
		||||
            {
 | 
			
		||||
                return null;
 | 
			
		||||
            }            
 | 
			
		||||
            else return null;                      
 | 
			
		||||
        }        
 | 
			
		||||
 | 
			
		||||
        private void SRSystem(bool state)
 | 
			
		||||
@ -246,9 +243,6 @@ namespace OWTrack
 | 
			
		||||
            tr.gamePath = getGamePath();
 | 
			
		||||
            update();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        #endregion
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -18,7 +18,7 @@ namespace OWTrack
 | 
			
		||||
            Application.Run(new MainForm());
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public static string Version { get; } = "1.4.1";
 | 
			
		||||
        public static string Version { get; } = "1.4.2-a0";
 | 
			
		||||
        //public static string Version = Application.ProductVersion;
 | 
			
		||||
        //public static Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -109,9 +109,7 @@ namespace OWTrack
 | 
			
		||||
                    gamePath = paths[0];
 | 
			
		||||
                    return true;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                else return false;                
 | 
			
		||||
                
 | 
			
		||||
            }
 | 
			
		||||
            catch (Exception e)
 | 
			
		||||
            {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user