Browse Source

Translation for exit dialog

Bepis 7 years ago
parent
commit
6730971e5a
2 changed files with 4 additions and 5 deletions
  1. 1 1
      BepInEx.Patcher/Internal/ExitScenePlugin.cs
  2. 3 4
      BepInEx.Patcher/Program.cs

+ 1 - 1
BepInEx.Patcher/Internal/ExitScenePlugin.cs

@@ -17,7 +17,7 @@ namespace BepInEx.Patcher.Internal
 
 
             var IL = startExit.Body.GetILProcessor();
-            IL.Replace(startExit.Body.Instructions[26], IL.Create(OpCodes.Ldstr, "TL INJECT TEST - Harsh is still shit"));
+            IL.Replace(startExit.Body.Instructions[26], IL.Create(OpCodes.Ldstr, "Do you want to exit the character maker?"));
         }
     }
 }

+ 3 - 4
BepInEx.Patcher/Program.cs

@@ -76,12 +76,11 @@ namespace BepInEx.Patcher
             });
 
 
-
-            //IPatchPlugin exitScene = new ExitScenePlugin();
-            //exitScene.Patch(assembly);
+            InjectAssembly(assembly, unity, tm, injected);
 
 
-            InjectAssembly(assembly, unity, tm, injected);
+            IPatchPlugin exitScene = new ExitScenePlugin();
+            exitScene.Patch(assembly);
 
 
             assembly.Write(assemblyDLL);