SHA256
Create scrMistakesManagerPatch to Prevent Mistakes Saving
This commit is contained in:
1 parent
c45a782026
commit
1c0f9ffa30
1 file changed
+16
@@ -0,0 +1,16 @@
|
|||||||
|
using HarmonyLib;
|
||||||
|
|
||||||
|
namespace ADOFAIRenderer.Patch.ClassPatch
|
||||||
|
{
|
||||||
|
[HarmonyPatch(typeof(scrMistakesManager))]
|
||||||
|
// ReSharper disable once InconsistentNaming
|
||||||
|
public static class scrMistakesManagerPatch
|
||||||
|
{
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch("SaveCustom")]
|
||||||
|
public static bool PreventSaveCustom()
|
||||||
|
{
|
||||||
|
return !RenderMod.IsRendering;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user