Add button in settings to open logs folder (#947)

This commit is contained in:
Xpl0itR 2020-02-17 21:35:03 +00:00 committed by GitHub
parent e5f78fb1d4
commit d736352da2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 36 deletions

View file

@ -4,6 +4,7 @@ using Ryujinx.Configuration.Hid;
using Ryujinx.Configuration.System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
@ -47,7 +48,6 @@ namespace Ryujinx.Ui
[GUI] ToggleButton _addDir;
[GUI] ToggleButton _browseDir;
[GUI] ToggleButton _removeDir;
[GUI] Entry _logPath;
[GUI] Entry _graphicsShadersDumpPath;
[GUI] Image _controller1Image;
@ -244,8 +244,6 @@ namespace Ryujinx.Ui
_browseThemePath.Sensitive = false;
}
_logPath.Buffer.Text = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Ryujinx.log");
_listeningForKeypress = false;
}
@ -366,6 +364,16 @@ namespace Ryujinx.Ui
_browseThemePath.SetStateFlags(0, true);
}
private void OpenLogsFolder_Pressed(object sender, EventArgs args)
{
Process.Start(new ProcessStartInfo()
{
FileName = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs"),
UseShellExecute = true,
Verb = "open"
});
}
private void SaveToggle_Activated(object sender, EventArgs args)
{
List<string> gameDirs = new List<string>();