aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Grabensteiner <35697862+PatrickGrabensteiner@users.noreply.github.com>2020-04-28 03:50:36 +0200
committerGitHub <noreply@github.com>2020-04-28 03:50:36 +0200
commitec620e2de0e65eac10bff64f0774abcd6857c743 (patch)
tree431e6fdec86e8b9ce8d21813eca14b321b472128
parent486f3163f399fb8751939bd7e9b31d0471e841d2 (diff)
Create log folder if not exists fixes #1143 (#1146)
* Create log folder if not exists fixes #1143 * Fixed Format Co-authored-by: Patrick Grabensteiner <patrick.grabensteiner@gmx.at>
-rw-r--r--Ryujinx/Ui/SwitchSettings.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/Ryujinx/Ui/SwitchSettings.cs b/Ryujinx/Ui/SwitchSettings.cs
index 700d0596..28435572 100644
--- a/Ryujinx/Ui/SwitchSettings.cs
+++ b/Ryujinx/Ui/SwitchSettings.cs
@@ -462,9 +462,14 @@ namespace Ryujinx.Ui
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()
{
- FileName = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs"),
+ FileName = logPath,
UseShellExecute = true,
Verb = "open"
});