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,9 +319,10 @@ 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" };
// startInfo.BootUnhookDlls = new List<string>() { "kernel32.dll", "ntdll.dll", "user32.dll" };
return startInfo;
}