Added a window with settings for shortcuts.

Added new arguments for shortcuts.
When starting a game with arguments, a separate independent setting will be used
This commit is contained in:
Vova
2025-02-01 16:21:32 +10:00
parent d76da6e4df
commit b8fe778299
10 changed files with 716 additions and 20 deletions

View File

@@ -377,15 +377,11 @@ namespace Ryujinx.Ava.UI.Controls
png.SaveTo(fileStream);
}
public void CreateApplicationShortcut_Click(object sender, RoutedEventArgs args)
public async void CreateApplicationShortcut_Click(object sender, RoutedEventArgs args)
{
if (sender is MenuItem { DataContext: MainWindowViewModel { SelectedApplication: not null } viewModel })
ShortcutHelper.CreateAppShortcut(
viewModel.SelectedApplication.Path,
viewModel.SelectedApplication.Name,
viewModel.SelectedApplication.IdString,
viewModel.SelectedApplication.Icon
);
await new ArgumentsConfigWindows(viewModel).ShowDialog((Window)viewModel.TopLevel);
}
public async void RunApplication_Click(object sender, RoutedEventArgs args)