Skip to content

Commit

Permalink
disable story/restoration combat autosave
Browse files Browse the repository at this point in the history
  • Loading branch information
ajkroeg committed Feb 19, 2023
1 parent 348ef80 commit c727cc3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
13 changes: 13 additions & 0 deletions IRTweaks/IRTweaks/Modules/UI/CombatSaves.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,18 @@ static bool Prefix(SimGameOptionsMenu __instance, Action quitAction)
}
}

[HarmonyPatch(typeof(CombatGameState), "TriggerAutoSaving")]
static class CombatGameState_TriggerAutoSaving
{
static bool Prepare() => Mod.Config.Fixes.DisableCombatSaves;

static void Prefix(CombatGameState __instance)
{
if (__instance.NeedsStoryMissionStartSave)
{
__instance.NeedsStoryMissionStartSave = false;
Mod.Log.Info?.Write("[CombatGameState_TriggerAutoSaving] Skipping combat autosave.");
}
}
}
}
4 changes: 2 additions & 2 deletions IRTweaks/IRTweaks/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.8.2")]
[assembly: AssemblyFileVersion("0.9.8.2")]
[assembly: AssemblyVersion("0.9.8.3")]
[assembly: AssemblyFileVersion("0.9.8.3")]

0 comments on commit c727cc3

Please sign in to comment.