mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2025-09-01 05:46:27 -05:00
Add button in settings to open logs folder (#947)
This commit is contained in:
@@ -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>();
|
||||
|
Reference in New Issue
Block a user