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>
This commit is contained in:
Patrick Grabensteiner 2020-04-28 03:50:36 +02:00 committed by GitHub
parent 486f3163f3
commit ec620e2de0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
});