コード例 #1
0
        public static void SetupConfig()
        {
            //QuickLogger.DebugLogsEnabled = QModManager.Utility.Logger.DebugLogsEnabled;
            // Logger.Log(Logger.Level.Debug, "Debug logs enabled");

            QuickLogger.Info("Loading config.json settings");
            ModConfiguration.Initialize();
        }
コード例 #2
0
        public static void Patch()
        {
            QuickLogger.Info("Started patching. Version: " + QuickLogger.GetAssemblyVersion());

#if DEBUG
            QuickLogger.DebugLogsEnabled = true;
            QuickLogger.Debug("Debug logs enabled");
#endif

            ModConfiguration.Initialize();

            CubeGeneratorBuildable.PatchSMLHelper();

            var harmony = new Harmony("com.ioncubegenerator.psmod");
            harmony.PatchAll(Assembly.GetExecutingAssembly());

            QuickLogger.Info("Finished patching");
        }