Esempio n. 1
0
        static void Main()
        {
            // Global exception handler
            AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
            {
                Log.WriteLine(e.ExceptionObject.ToString());
            };

            // Logging
            string logFolder = "SpelunkyRTATrackerLogs";

            Directory.CreateDirectory(logFolder);
            string       logName = logFolder + "\\log_" + (DateTime.Now.ToString("MMddyyyy_HHmmss")) + ".txt";
            StreamWriter logFile = File.CreateText(logName);

            logFile.AutoFlush = true;
            Console.SetOut(logFile);

            // Settings file
            TrackerSettings settings = TrackerSettings.Load();

            settings.Save();

            // Initial setup
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Application.Run(new TrayApplicationContext(settings));
        }
Esempio n. 2
0
 public void Load()
 {
     OptionsOverlayGeneral.Load();
     OptionsOverlayDeckWindows.Load();
     OptionsOverlayPlayer.Load();
     OptionsOverlayOpponent.Load();
     OptionsOverlayInteractivity.Load();
     OptionsTrackerSettings.Load();
     OptionsTrackerExporting.Load();
     OptionsTrackerImporting.Load();
     OptionsTrackerLogging.Load();
     OptionsTrackerStats.Load();
     OptionsTrackerLogging.Load();
     OptionsTrackerGeneral.Load();
 }
 public void Load(GameV2 game)
 {
     OptionsOverlayGeneral.Load(game);
     OptionsOverlayDeckWindows.Load(game);
     OptionsOverlayPlayer.Load(game);
     OptionsOverlayOpponent.Load(game);
     OptionsOverlayInteractivity.Load();
     OptionsTrackerSettings.Load();
     OptionsTrackerImporting.Load(game);
     OptionsTrackerLogging.Load(game);
     OptionsTrackerStats.Load();
     OptionsTrackerLogging.Load(game);
     OptionsTrackerGeneral.Load();
     OptionsTrackerAppearance.Load();
     OptionsTrackerBackups.Load();
     OptionsTrackerNotifications.Load();
 }
 public void Load()
 {
     OptionsOverlayGeneral.Load();
     OptionsOverlayDeckWindows.Load();
     OptionsOverlayPlayer.Load();
     OptionsOverlayOpponent.Load();
     OptionsOverlayInteractivity.Load();
     OptionsTrackerSettings.Load();
     OptionsTrackerExporting.Load();
     OptionsTrackerImporting.Load();
     OptionsTrackerLogging.Load();
     OptionsTrackerStats.Load();
     OptionsTrackerLogging.Load();
     OptionsTrackerGeneral.Load();
     OptionsTrackerAppearance.Load();
     //OptionsTrackerPlugins.Load(); - load in main after loading plugins
 }