/// <summary>
 /// Call this when the modified object lists are no longer necessary
 /// </summary>
 public void DumpModifiedFilesFromMemory()
 {
     ModifiedBasegameFiles.ClearEx();
     ModifiedSFARFiles.ClearEx();
     foreach (var uiInstalledDlcMod in UIInstalledDLCMods)
     {
         uiInstalledDlcMod.ClearHandlers();
     }
     UIInstalledDLCMods.ClearEx();
 }
Beispiel #2
0
        /// <summary>
        /// Call this when the modified object lists are no longer necessary
        /// </summary>
        public void DumpModifiedFilesFromMemory()
        {
            //Some commands are made from a background thread, which means this might not be called from dispatcher
            App.Current.Dispatcher.Invoke(delegate
            {
                ModifiedBasegameFiles.ClearEx();
                ModifiedSFARFiles.ClearEx();
                foreach (var uiInstalledDlcMod in UIInstalledDLCMods)
                {
                    uiInstalledDlcMod.ClearHandlers();
                }

                UIInstalledDLCMods.ClearEx();
            });
        }