misc: Forgot about ReactiveObject

This commit is contained in:
Evan Husted 2024-12-29 04:16:08 -06:00
parent f463ea1c5d
commit cbd851d00e
6 changed files with 16 additions and 29 deletions

View file

@ -8,20 +8,7 @@ namespace Ryujinx.Common
{
public static class TitleIDs
{
private static string _currentApplication;
public static Optional<string> CurrentApplication
{
get => _currentApplication;
set
{
_currentApplication = value.OrElse(null);
CurrentApplicationChanged?.Invoke(_currentApplication);
}
}
public static event Action<Optional<string>> CurrentApplicationChanged;
public static ReactiveObject<Optional<string>> CurrentApplication { get; set; } = new();
public static GraphicsBackend SelectGraphicsBackend(string titleId, GraphicsBackend currentBackend)
{