public MainWindow()
        {
            InitializeComponent();

            eventHistory = new List <string>();
            settings     = new Settings();

            btnDisableCrashReports.DataContext = settings;
            btnEnableDeveloperMode.DataContext = settings;

            CrashReporting.CrashReporter.StartWatching();
            CrashReporting.CrashReporter.OnCrashDumpProcessed += CrashReporter_OnDumpProcessed;

            Api.ApiQueue.OnApiRequestIssued += ApiQueue_OnApiRequestIssued;
            Api.ApiQueue.OnApiRequestResult += ApiQueue_OnApiRequestResult;

            TitanfallMod.OnStatusUpdateException += TitanfallMod_OnStatusUpdateException;

            SDKInjector.OnLaunchingProcess     += SDKInjector_OnLaunchingProcess;
            SDKInjector.OnInjectingIntoProcess += SDKInjector_OnInjectingIntoProcess;
            SDKInjector.OnInjectionComplete    += SDKInjector_OnInjectionComplete;
            SDKInjector.OnInjectionException   += SDKInjector_OnInjectionException;

            ModDatabase.OnStartedLoadingMods   += ModDatabase_OnStartedLoadingMods;
            ModDatabase.OnFinishedLoadingMods  += ModDatabase_OnFinishedLoadingMods;
            ModDatabase.OnModLoaded            += ModDatabase_OnModLoaded;
            ModDatabase.OnFinishedImportingMod += ModDatabase_OnFinishedImportingMod;
            ModDatabase.LoadAll();

            UpdateLauncherSelection();
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            eventHistory = new List <string>();
            settings     = new Settings();

            btnDisableCrashReports.DataContext = settings;
            btnEnableDeveloperMode.DataContext = settings;

            CrashReporting.CrashReporter.StartWatching();
            CrashReporting.CrashReporter.OnCrashDumpProcessed += CrashReporter_OnDumpProcessed;

            SDKInjector.OnLaunchingProcess     += SDKInjector_OnLaunchingProcess;
            SDKInjector.OnInjectingIntoProcess += SDKInjector_OnInjectingIntoProcess;
            SDKInjector.OnInjectionComplete    += SDKInjector_OnInjectionComplete;
            SDKInjector.OnInjectionException   += SDKInjector_OnInjectionException;

            ModDatabase.OnStartedLoadingMods   += ModDatabase_OnStartedLoadingMods;
            ModDatabase.OnFinishedLoadingMods  += ModDatabase_OnFinishedLoadingMods;
            ModDatabase.OnModLoaded            += ModDatabase_OnModLoaded;
            ModDatabase.OnFinishedImportingMod += ModDatabase_OnFinishedImportingMod;
            ModDatabase.OnModsChanged          += ModDatabase_OnModsChanged;
            ModDatabase.LoadAll();
            ModDatabase.WatchModsFolder();

            UpdateLauncherSelection();
        }
 private void ReloadModsList()
 {
     ModsPanel.Children.Clear();
     ModDatabase.ClearDatabase();
     ModDatabase.LoadAll();
 }