-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve resolving perfomance and conflict solver ui navigation
Switch json formatting from indented to none in order to reduce json size Fixed issue when parsing state overlay message wasn't updated Switch patch state saving in a background thread to further improve perfomance Implement signal to prevent app shutdown if a destructive operation is in progress (the app will shutdown once it is completed) Further reduced the size of state json by excluding code for non relevant objects except conflict history Export handles not whole text filenames properly (like message_types.txt) Defines parser handles more complex types now
- Loading branch information
Showing
38 changed files
with
927 additions
and
194 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
src/IronyModManager.Common/Events/ShutdownStateEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// *********************************************************************** | ||
// Assembly : IronyModManager.Common | ||
// Author : Mario | ||
// Created : 04-19-2020 | ||
// | ||
// Last Modified By : Mario | ||
// Last Modified On : 04-19-2020 | ||
// *********************************************************************** | ||
// <copyright file="ShutdownStateEventArgs.cs" company="Mario"> | ||
// Mario | ||
// </copyright> | ||
// <summary></summary> | ||
// *********************************************************************** | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace IronyModManager.Common.Events | ||
{ | ||
/// <summary> | ||
/// Class ShutdownStateEventArgs. | ||
/// </summary> | ||
public class ShutdownStateEventArgs | ||
{ | ||
#region Properties | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether [prevent shutdown]. | ||
/// </summary> | ||
/// <value><c>true</c> if [prevent shutdown]; otherwise, <c>false</c>.</value> | ||
public bool PreventShutdown { get; set; } | ||
|
||
#endregion Properties | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// *********************************************************************** | ||
// Assembly : IronyModManager.DI | ||
// Author : Mario | ||
// Created : 04-19-2020 | ||
// | ||
// Last Modified By : Mario | ||
// Last Modified On : 04-19-2020 | ||
// *********************************************************************** | ||
// <copyright file="WritablePropertiesResolver.cs" company="Mario"> | ||
// Mario | ||
// </copyright> | ||
// <summary></summary> | ||
// *********************************************************************** | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Serialization; | ||
|
||
namespace IronyModManager.DI.Json | ||
{ | ||
/// <summary> | ||
/// Class WritablePropertiesResolver. | ||
/// Implements the <see cref="Newtonsoft.Json.Serialization.DefaultContractResolver" /> | ||
/// </summary> | ||
/// <seealso cref="Newtonsoft.Json.Serialization.DefaultContractResolver" /> | ||
public class WritablePropertiesResolver : DefaultContractResolver | ||
{ | ||
#region Methods | ||
|
||
/// <summary> | ||
/// Creates properties for the given <see cref="T:Newtonsoft.Json.Serialization.JsonContract" />. | ||
/// </summary> | ||
/// <param name="type">The type to create properties for.</param> | ||
/// <param name="memberSerialization">The member serialization mode for the type.</param> | ||
/// <returns>Properties for the given <see cref="T:Newtonsoft.Json.Serialization.JsonContract" />.</returns> | ||
protected override IList<JsonProperty> CreateProperties(Type type, MemberSerialization memberSerialization) | ||
{ | ||
IList<JsonProperty> props = base.CreateProperties(type, memberSerialization); | ||
return props.Where(p => p.Writable).ToList(); | ||
} | ||
|
||
#endregion Methods | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// *********************************************************************** | ||
// Assembly : IronyModManager.IO.Common | ||
// Author : Mario | ||
// Created : 04-19-2020 | ||
// | ||
// Last Modified By : Mario | ||
// Last Modified On : 04-19-2020 | ||
// *********************************************************************** | ||
// <copyright file="Delegates.cs" company="Mario"> | ||
// Mario | ||
// </copyright> | ||
// <summary></summary> | ||
// *********************************************************************** | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace IronyModManager.IO.Common | ||
{ | ||
/// <summary> | ||
/// Class Delegates. | ||
/// </summary> | ||
public class Delegates | ||
{ | ||
#region Delegates | ||
|
||
/// <summary> | ||
/// Delegate WriteOperationStateDelegate | ||
/// </summary> | ||
/// <param name="started">if set to <c>true</c> [started].</param> | ||
public delegate void WriteOperationStateDelegate(bool started); | ||
|
||
#endregion Delegates | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.