mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: actually set BootLogPath from injector
This commit is contained in:
parent
90ed2b0282
commit
03304b3495
2 changed files with 9 additions and 3 deletions
|
|
@ -187,8 +187,6 @@ namespace Dalamud.Injector
|
||||||
|
|
||||||
var logPath = GetLogPath("dalamud.injector");
|
var logPath = GetLogPath("dalamud.injector");
|
||||||
|
|
||||||
Environment.SetEnvironmentVariable("DALAMUD_BOOT_LOGFILE", GetLogPath("dalamud.boot"));
|
|
||||||
|
|
||||||
CullLogFile(logPath, 1 * 1024 * 1024);
|
CullLogFile(logPath, 1 * 1024 * 1024);
|
||||||
|
|
||||||
Log.Logger = new LoggerConfiguration()
|
Log.Logger = new LoggerConfiguration()
|
||||||
|
|
@ -321,9 +319,10 @@ namespace Dalamud.Injector
|
||||||
startInfo.GameVersion = null;
|
startInfo.GameVersion = null;
|
||||||
|
|
||||||
// Set boot defaults
|
// Set boot defaults
|
||||||
|
startInfo.BootLogPath = GetLogPath("dalamud.boot");
|
||||||
startInfo.BootEnabledGameFixes = new List<string> { "prevent_devicechange_crashes", "disable_game_openprocess_access_check", "redirect_openprocess" };
|
startInfo.BootEnabledGameFixes = new List<string> { "prevent_devicechange_crashes", "disable_game_openprocess_access_check", "redirect_openprocess" };
|
||||||
startInfo.BootDotnetOpenProcessHookMode = 0;
|
startInfo.BootDotnetOpenProcessHookMode = 0;
|
||||||
//startInfo.BootUnhookDlls = new List<string>() { "kernel32.dll", "ntdll.dll", "user32.dll" };
|
// startInfo.BootUnhookDlls = new List<string>() { "kernel32.dll", "ntdll.dll", "user32.dll" };
|
||||||
|
|
||||||
return startInfo;
|
return startInfo;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
using Dalamud.Game;
|
using Dalamud.Game;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
|
|
@ -33,6 +34,7 @@ namespace Dalamud
|
||||||
this.Language = other.Language;
|
this.Language = other.Language;
|
||||||
this.GameVersion = other.GameVersion;
|
this.GameVersion = other.GameVersion;
|
||||||
this.DelayInitializeMs = other.DelayInitializeMs;
|
this.DelayInitializeMs = other.DelayInitializeMs;
|
||||||
|
this.BootLogPath = other.BootLogPath;
|
||||||
this.BootShowConsole = other.BootShowConsole;
|
this.BootShowConsole = other.BootShowConsole;
|
||||||
this.BootDisableFallbackConsole = other.BootDisableFallbackConsole;
|
this.BootDisableFallbackConsole = other.BootDisableFallbackConsole;
|
||||||
this.BootWaitMessageBox = other.BootWaitMessageBox;
|
this.BootWaitMessageBox = other.BootWaitMessageBox;
|
||||||
|
|
@ -85,6 +87,11 @@ namespace Dalamud
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int DelayInitializeMs { get; set; } = 0;
|
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>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether a Boot console should be shown.
|
/// Gets or sets a value indicating whether a Boot console should be shown.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue