From 819b68f17cd60b77201b382c4d306474106f9294 Mon Sep 17 00:00:00 2001
From: PredatoryBalloon <52945286+PredatoryBalloon@users.noreply.github.com>
Date: Sun, 2 Jan 2022 12:45:22 -0600
Subject: [PATCH] Fixed creator name field issue.
---
.../Distance.EditorAnnihilator.csproj | 1 +
.../LevelSettings/OpenLevelSelectMenu.cs | 33 +++++++++++++++++++
2 files changed, 34 insertions(+)
create mode 100644 Distance.EditorAnnihilator/Harmony/Assembly-CSharp/LevelSettings/OpenLevelSelectMenu.cs
diff --git a/Distance.EditorAnnihilator/Distance.EditorAnnihilator.csproj b/Distance.EditorAnnihilator/Distance.EditorAnnihilator.csproj
index d00a5fa..1af437b 100644
--- a/Distance.EditorAnnihilator/Distance.EditorAnnihilator.csproj
+++ b/Distance.EditorAnnihilator/Distance.EditorAnnihilator.csproj
@@ -124,6 +124,7 @@
+
diff --git a/Distance.EditorAnnihilator/Harmony/Assembly-CSharp/LevelSettings/OpenLevelSelectMenu.cs b/Distance.EditorAnnihilator/Harmony/Assembly-CSharp/LevelSettings/OpenLevelSelectMenu.cs
new file mode 100644
index 0000000..c7a1092
--- /dev/null
+++ b/Distance.EditorAnnihilator/Harmony/Assembly-CSharp/LevelSettings/OpenLevelSelectMenu.cs
@@ -0,0 +1,33 @@
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using HarmonyLib;
+using LevelEditorTools;
+using UnityEngine;
+using System.Reflection;
+
+namespace Mod.EditorAnnihilator.Harmony
+{
+ [HarmonyPatch(typeof(LevelEditor), "OpenLevelSelectMenu")]
+ internal static class LevelEditor__OpenLevelSelectMenu
+ {
+ //__instance is the class you are patching, so you can call functions on it.
+ //If patching a function with paramaters, you can just add those paramaters as paramaters inside Postfix.
+ //If the function you're patching has a return type, you can modify the result value with the parameter 'ref [type of return value] __result'
+ [HarmonyPrefix]
+ internal static void Prefix()
+ {
+ if (!Mod.CNF)
+ {
+ Mod.DevBuildForCreatorName = false;
+ }
+ }
+ }
+}
\ No newline at end of file