mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-22 08:29:18 +01:00
feat: configurable log path
This commit is contained in:
parent
4264db8d67
commit
cc4a0652c2
6 changed files with 40 additions and 23 deletions
|
|
@ -571,17 +571,19 @@ internal class DalamudInterface : IDisposable, IServiceType
|
|||
ImGui.EndMenu();
|
||||
}
|
||||
|
||||
var startInfo = Service<DalamudStartInfo>.Get();
|
||||
|
||||
var logSynchronously = configuration.LogSynchronously;
|
||||
if (ImGui.MenuItem("Log Synchronously", null, ref logSynchronously))
|
||||
{
|
||||
configuration.LogSynchronously = logSynchronously;
|
||||
configuration.QueueSave();
|
||||
|
||||
var startupInfo = Service<DalamudStartInfo>.Get();
|
||||
EntryPoint.InitLogging(
|
||||
startupInfo.WorkingDirectory!,
|
||||
startupInfo.BootShowConsole,
|
||||
configuration.LogSynchronously);
|
||||
startInfo.WorkingDirectory!,
|
||||
startInfo.BootShowConsole,
|
||||
configuration.LogSynchronously,
|
||||
startInfo.LogName);
|
||||
}
|
||||
|
||||
var antiDebug = Service<AntiDebug>.Get();
|
||||
|
|
@ -693,9 +695,8 @@ internal class DalamudInterface : IDisposable, IServiceType
|
|||
this.OpenBranchSwitcher();
|
||||
}
|
||||
|
||||
var startInfo = Service<DalamudStartInfo>.Get();
|
||||
ImGui.MenuItem(Util.AssemblyVersion, false);
|
||||
ImGui.MenuItem(startInfo.GameVersion.ToString(), false);
|
||||
ImGui.MenuItem(startInfo.GameVersion?.ToString() ?? "Unknown version", false);
|
||||
ImGui.MenuItem($"D: {Util.GetGitHash()} CS: {Util.GetGitHashClientStructs()}", false);
|
||||
ImGui.MenuItem($"CLR: {Environment.Version}", false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue