mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-30 01:29:48 -06:00
Move the open logs folder from setting into the File menu in the main window (#1550)
This commit is contained in:
@ -882,7 +882,7 @@ namespace Ryujinx.Ui
|
||||
|
||||
private void Open_Ryu_Folder(object sender, EventArgs args)
|
||||
{
|
||||
Process.Start(new ProcessStartInfo()
|
||||
Process.Start(new ProcessStartInfo
|
||||
{
|
||||
FileName = AppDataManager.BaseDirPath,
|
||||
UseShellExecute = true,
|
||||
@ -890,6 +890,21 @@ 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 = logPath,
|
||||
UseShellExecute = true,
|
||||
Verb = "open"
|
||||
});
|
||||
}
|
||||
|
||||
private void Exit_Pressed(object sender, EventArgs args)
|
||||
{
|
||||
End(_emulationContext);
|
||||
|
Reference in New Issue
Block a user