Skip to content

Commit

Permalink
[FIX] Mod Settings was not being retained when saving fmtproj to a ne…
Browse files Browse the repository at this point in the history
…w file
  • Loading branch information
paulov-t committed Apr 17, 2023
1 parent e08dd44 commit 44a04cf
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Libraries/FrostySdk/ModsAndProjects/Projects/FrostbiteProject.cs
Expand Up @@ -17,6 +17,7 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using v2k4FIFAModding.Frosty;

namespace FrostySdk
{
Expand Down Expand Up @@ -1222,6 +1223,17 @@ public void ClearDirtyFlag()
{
isDirty = false;
}

public ModSettings UpdateFromOtherModSettings(ModSettings otherModSettings)
{
var storedPreviousModSettings = otherModSettings.CloneJson();
Author = storedPreviousModSettings.Author;
Description = storedPreviousModSettings.Description;
Title = storedPreviousModSettings.Title;
Category = storedPreviousModSettings.Category;
Version = storedPreviousModSettings.Version;
return this;
}
}


Expand Down

0 comments on commit 44a04cf

Please sign in to comment.