// constructor public Audiosync() { //MessageBox.Show("this is called", null, MessageBoxButtons.OK); dllPath = $"{Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)}\\{dll}"; if (LeagueInjector.Inject(dllPath) == false) { Logger.setError("failed to inject " + dll); //MessageBox.Show("failed to inject", null, MessageBoxButtons.OK); watchingReplay = false; return; } //MessageBox.Show("injected", null, MessageBoxButtons.OK); watchingReplay = true; // listens for udp data listener = new Listener(listen_port); // triggers events when listened data becomes out of sync sync = new Synchronizer(listener, triggerTimeSeek); }
public void getLeagueArgs(Action <object> callback) { callback(LeagueInjector.getLeagueArgs()); }