Skip to content

Commit

Permalink
Harmony changes (#335)
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula authored Jan 7, 2021
1 parent fee8f13 commit 178813e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/OWML.Launcher/OWML.Manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Alek",
"name": "OWML",
"uniqueName": "Alek.OWML",
"version": "1.1.7",
"version": "1.1.8",
"description": "The mod loader and mod framework for Outer Wilds",
"minGameVersion": "1.0.7.0",
"maxGameVersion": "1.0.7.481"
Expand Down
14 changes: 9 additions & 5 deletions src/OWML.ModHelper.Events/HarmonyHelper.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using Harmony;
using OWML.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Harmony;
using OWML.Common;

namespace OWML.ModHelper.Events
{
Expand All @@ -29,8 +29,12 @@ private HarmonyInstance CreateInstance()
try
{
_console.WriteLine($"Creating harmony instance: {_manifest.UniqueName}", MessageType.Debug);
HarmonyInstance.DEBUG = true;
FileLog.logPath = $"{_owmlConfig.LogsPath}/harmony.log.txt";
if (_owmlConfig.DebugMode)
{
_console.WriteLine("Enabling Harmony debug mode.", MessageType.Debug);
FileLog.logPath = $"{_owmlConfig.LogsPath}/Harmony.Log.{DateTime.Now:dd-MM-yyyy-HH.mm.ss}.txt";
HarmonyInstance.DEBUG = true;
}
harmony = HarmonyInstance.Create(_manifest.UniqueName);
}
catch (TypeLoadException ex)
Expand Down

0 comments on commit 178813e

Please sign in to comment.