Skip to content

Commit b72f3a0

Browse files
authored
Merge pull request #329 from amazingalek/dev
harmony logs to OWML Logs folder (#328)
2 parents c03274c + f7fca7a commit b72f3a0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/OWML.Launcher/OWML.Manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Alek",
33
"name": "OWML",
44
"uniqueName": "Alek.OWML",
5-
"version": "1.1.1",
5+
"version": "1.1.2",
66
"description": "The mod loader and mod framework for Outer Wilds",
77
"minGameVersion": "1.0.7.0",
88
"maxGameVersion": "1.0.7.481"

src/OWML.ModHelper.Events/HarmonyHelper.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ public class HarmonyHelper : IHarmonyHelper
1010
private readonly IModLogger _logger;
1111
private readonly IModConsole _console;
1212
private readonly IModManifest _manifest;
13+
private readonly IOwmlConfig _owmlConfig;
1314
private readonly HarmonyInstance _harmony;
1415

15-
public HarmonyHelper(IModLogger logger, IModConsole console, IModManifest manifest)
16+
public HarmonyHelper(IModLogger logger, IModConsole console, IModManifest manifest, IOwmlConfig owmlConfig)
1617
{
1718
_logger = logger;
1819
_console = console;
1920
_manifest = manifest;
21+
_owmlConfig = owmlConfig;
22+
2023
_harmony = CreateInstance();
2124
}
2225

@@ -27,6 +30,7 @@ private HarmonyInstance CreateInstance()
2730
{
2831
_logger.Log($"Creating harmony instance: {_manifest.UniqueName}");
2932
HarmonyInstance.DEBUG = true;
33+
FileLog.logPath = $"{_owmlConfig.LogsPath}/harmony.log.txt";
3034
harmony = HarmonyInstance.Create(_manifest.UniqueName);
3135
}
3236
catch (TypeLoadException ex)

0 commit comments

Comments
 (0)