mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-11 23:42:19 -10:00
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
26 lines
658 B
C#
26 lines
658 B
C#
using Avalonia.Controls;
|
|
using Mesen.Config;
|
|
using Mesen.Utilities;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
namespace Mesen.ViewModels
|
|
{
|
|
public partial class EmulationConfigViewModel : DisposableViewModel
|
|
{
|
|
[ObservableProperty] public partial EmulationConfig Config { get; set; }
|
|
[ObservableProperty] public partial EmulationConfig OriginalConfig { get; set; }
|
|
|
|
public EmulationConfigViewModel()
|
|
{
|
|
Config = ConfigManager.Config.Emulation;
|
|
OriginalConfig = Config.Clone();
|
|
|
|
if(Design.IsDesignMode) {
|
|
return;
|
|
}
|
|
|
|
AddDisposable(ReactiveHelper.RegisterRecursiveObserver(Config, (s, e) => { Config.ApplyConfig(); }));
|
|
}
|
|
}
|
|
}
|