Example #1
0
 public TimerForm(string filepath, string classpath, string process)
 {
     MessageBox.Show("Loading " + filepath + "\nClasspath " + classpath, "Alert!");
     InitializeComponent();
     s = new Settings();
     if (!File.Exists("settings.def"))
     {
         LoadDefaultSettings();
     }
     else
     {
         s.Parse(File.ReadAllLines("settings.def"));
         RefreshSettings();
     }
     KeyHook.SharedInstance.OnKeyPressed += OnGlobalKey;
     proc = GameProcess.OpenGameProcess(process);
     LoadGame(filepath, classpath);
     sw    = new Stopwatch();
     timer = new GameTime(game);
     timer1.Start();
 }
Example #2
0
 public bool Init(GameProcess process)
 {
     gameProcess = process;
     return(true);
 }