mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-04-20 21:52:54 +00:00
This window can be accessed via "Help" menu in the title bar. This menu's data is synced with the in-app-list LDN game data, and that has been modified to hide unjoinable games (in-progress and/or private (needing a passphrase)). You can still see these games in the list.
21 lines
678 B
C#
21 lines
678 B
C#
using Avalonia.Data.Converters;
|
|
using CommandLine;
|
|
using Ryujinx.Ava.Common.Locale;
|
|
using System;
|
|
using System.Globalization;
|
|
|
|
namespace Ryujinx.Ava.UI.Helpers
|
|
{
|
|
public class LocaleKeyValueConverter : IValueConverter
|
|
{
|
|
private static readonly Lazy<LocaleKeyValueConverter> _shared = new(() => new());
|
|
public static LocaleKeyValueConverter Shared => _shared.Value;
|
|
|
|
public object Convert(object value, Type _, object __, CultureInfo ___)
|
|
=> LocaleManager.Instance[value.Cast<LocaleKeys>()];
|
|
|
|
public object ConvertBack(object value, Type _, object __, CultureInfo ___)
|
|
=> throw new NotSupportedException();
|
|
}
|
|
}
|