소스 검색

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>
Patrick Grabensteiner 6 년 전
부모
커밋
ec620e2de0
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      Ryujinx/Ui/SwitchSettings.cs

+ 6 - 1
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"
             });