Add button in settings to open logs folder (#947)
This commit is contained in:
parent
e5f78fb1d4
commit
d736352da2
2 changed files with 30 additions and 36 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue