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(); }
public bool Init(GameProcess process) { gameProcess = process; return(true); }