示例#1
0
 // 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);
 }
示例#2
0
 public void getLeagueArgs(Action <object> callback)
 {
     callback(LeagueInjector.getLeagueArgs());
 }