feat: actually set BootLogPath from injector

This commit is contained in:
goaaats 2022-06-19 12:45:12 +02:00
parent 90ed2b0282
commit 03304b3495
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
2 changed files with 9 additions and 3 deletions

View file

@ -187,8 +187,6 @@ namespace Dalamud.Injector
var logPath = GetLogPath("dalamud.injector");
Environment.SetEnvironmentVariable("DALAMUD_BOOT_LOGFILE", GetLogPath("dalamud.boot"));
CullLogFile(logPath, 1 * 1024 * 1024);
Log.Logger = new LoggerConfiguration()
@ -321,6 +319,7 @@ namespace Dalamud.Injector
startInfo.GameVersion = null;
// Set boot defaults
startInfo.BootLogPath = GetLogPath("dalamud.boot");
startInfo.BootEnabledGameFixes = new List<string> { "prevent_devicechange_crashes", "disable_game_openprocess_access_check", "redirect_openprocess" };
startInfo.BootDotnetOpenProcessHookMode = 0;
// startInfo.BootUnhookDlls = new List<string>() { "kernel32.dll", "ntdll.dll", "user32.dll" };

View file

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using Dalamud.Game;
using Newtonsoft.Json;
@ -33,6 +34,7 @@ namespace Dalamud
this.Language = other.Language;
this.GameVersion = other.GameVersion;
this.DelayInitializeMs = other.DelayInitializeMs;
this.BootLogPath = other.BootLogPath;
this.BootShowConsole = other.BootShowConsole;
this.BootDisableFallbackConsole = other.BootDisableFallbackConsole;
this.BootWaitMessageBox = other.BootWaitMessageBox;
@ -85,6 +87,11 @@ namespace Dalamud
/// </summary>
public int DelayInitializeMs { get; set; } = 0;
/// <summary>
/// Gets or sets the path the boot log file is supposed to be written to.
/// </summary>
public string BootLogPath { get; set; }
/// <summary>
/// Gets or sets a value indicating whether a Boot console should be shown.
/// </summary>