Преглед на файлове

Use a more correct entry point

Bepis преди 6 години
родител
ревизия
4c01f9b9fe

+ 1 - 1
Plugins/DeveloperConsole/DeveloperConsole.cs

@@ -17,7 +17,7 @@ namespace DeveloperConsole
         int showCounter = 0;
         string TotalShowingLog = "";
 
-        public DeveloperConsole()
+        void Awake()
         {
             BepInLogger.EntryLogged += (log, show) =>
             {

+ 1 - 1
Plugins/DynamicTranslationLoader/DynamicTranslator.cs

@@ -20,7 +20,7 @@ namespace DynamicTranslationLoader
         private static Dictionary<string, string> translations = new Dictionary<string, string>();
         private static List<string> untranslated = new List<string>();
 
-        public DynamicTranslator()
+        void Awake()
         {
             string[] translation = File.ReadAllLines(Utility.CombinePaths(Utility.PluginsDirectory, "translation", "translation.txt"));
 

+ 1 - 1
Plugins/ResourceRedirector/ResourceRedirector.cs

@@ -25,7 +25,7 @@ namespace ResourceRedirector
 
 
 
-        public ResourceRedirector()
+        void Awake()
         {
             Hooks.InstallHooks();
 

+ 1 - 1
Plugins/Screencap/ScreenshotManager.cs

@@ -58,7 +58,7 @@ namespace Screencap
         #endregion
 
 
-        public ScreenshotManager()
+        void Awake()
         {
             if (!Directory.Exists(screenshotDir))
                 Directory.CreateDirectory(screenshotDir);

+ 1 - 1
Plugins/SliderUnlocker/SliderUnlocker.cs

@@ -19,7 +19,7 @@ namespace SliderUnlocker
         public static float Minimum = -1.0f;
         public static float Maximum = 2.0f;
 
-        public SliderUnlocker()
+        void Awake()
         {
             Hooks.InstallHooks();
         }