mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-02 21:12:01 +00:00
* Create log folder if not exists fixes #1143 * Fixed Format Co-authored-by: Patrick Grabensteiner <patrick.grabensteiner@gmx.at>
This commit is contained in:
parent
486f3163f3
commit
ec620e2de0
1 changed files with 6 additions and 1 deletions
|
@ -462,9 +462,14 @@ namespace Ryujinx.Ui
|
||||||
|
|
||||||
private void OpenLogsFolder_Pressed(object sender, EventArgs args)
|
private void OpenLogsFolder_Pressed(object sender, EventArgs args)
|
||||||
{
|
{
|
||||||
|
string logPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs");
|
||||||
|
|
||||||
|
DirectoryInfo directory = new DirectoryInfo(logPath);
|
||||||
|
directory.Create();
|
||||||
|
|
||||||
Process.Start(new ProcessStartInfo()
|
Process.Start(new ProcessStartInfo()
|
||||||
{
|
{
|
||||||
FileName = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs"),
|
FileName = logPath,
|
||||||
UseShellExecute = true,
|
UseShellExecute = true,
|
||||||
Verb = "open"
|
Verb = "open"
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue