Пример #1
0
        static void Main(string[] args)
        {
            try
            {
                if (!EventLog.SourceExists("LiveSplit"))
                {
                    EventLog.CreateEventSource("LiveSplit", "Application");
                }
            }
            catch { }

            try
            {
                FiletypeRegistryHelper.RegisterFileFormats();
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }

            // Add LiveSplit.exe to Registry if not already there, so that Emulated Browser can load Twitch properly (look up Emulated Browsers & Compatibility View if interested)
            try
            {
                if (!InternetExplorerBrowserEmulation.IsBrowserEmulationSet("LiveSplit.exe"))
                {
                    InternetExplorerBrowserEmulation.SetBrowserEmulationVersion("LiveSplit.exe");
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }
        }
Пример #2
0
        static void Main(string[] args)
        {
            try
            {
                if (!EventLog.SourceExists("LiveSplit"))
                {
                    EventLog.CreateEventSource("LiveSplit", "Application");
                }
            }
            catch { }

            try
            {
                if (args.Length > 0 && args[0] == "obsplugin")
                {
                    InstallOBSPlugin();
                }
                else
                {
                    FiletypeRegistryHelper.RegisterFileFormats();
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }
        }
Пример #3
0
        static void Main(string[] args)
        {
            try
            {
                if (!EventLog.SourceExists("LiveSplit"))
                {
                    EventLog.CreateEventSource("LiveSplit", "Application");
                }
            }
            catch { }

            try
            {
                FiletypeRegistryHelper.RegisterFileFormats();
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }
        }