static void Main(string[] args)
        {
            Logger.OnStartup();

            Logger.Write("Loading LeagueBot...");

            Configuration.LoadConfig();

            PatternsManager.Initialize();

            PixelCache.Initialize();

            TextRecognition.Initialize();

            try
            {
                LeagueManager.ApplySettings();
            }
            catch
            {
                Logger.Write("Unable to set league of legends settings. (Probably due to permission restrictions.)", MessageState.WARNING);
            }

            HandleCommand();

            Console.Read();
        }
Beispiel #2
0
 public ImageEngine(CancellationToken cancelToken, string outputPath)
 {
     _outputPath        = outputPath;
     _cancelToken       = cancelToken;
     DataContextFactory = new DataContextFactory();
     PixelCache         = new PixelCache("ImageSevice");
     PixelCache.Initialize().Wait();
 }