Files
MesenCE/UI/Debugger/ViewModels/DebuggerOptionsViewModel.cs
SourMesen 40335ce735 UI: Update to Avalonia 12, .NET 10 and replace ReactiveUI with MVVM community toolkit (#142)
Also fixes DX11.0 support (for Win7 PCs that aren't fully updated), which stopped working after the recent variable refresh rate changes
2026-07-03 16:04:42 +09:00

40 lines
1.1 KiB
C#

using Mesen.Config;
using Mesen.Interop;
using Mesen.ViewModels;
namespace Mesen.Debugger.ViewModels
{
public partial class DebuggerOptionsViewModel : ViewModelBase
{
public DebuggerConfig Config { get; }
public bool IsSnes { get; }
public bool IsSpc { get; }
public bool IsNes { get; }
public bool IsGameboy { get; }
public bool IsPce { get; }
public bool IsSms { get; }
public bool IsGba { get; }
public bool IsWs { get; }
public bool HasSpecificBreakOptions { get; }
public DebuggerOptionsViewModel() : this(new DebuggerConfig(), CpuType.Snes) { }
public DebuggerOptionsViewModel(DebuggerConfig config, CpuType cpuType)
{
Config = config;
IsSnes = cpuType == CpuType.Snes;
IsSpc = cpuType == CpuType.Spc;
IsNes = cpuType == CpuType.Nes;
IsGameboy = cpuType == CpuType.Gameboy;
IsPce = cpuType == CpuType.Pce;
IsSms = cpuType == CpuType.Sms;
IsGba = cpuType == CpuType.Gba;
IsWs = cpuType == CpuType.Ws;
HasSpecificBreakOptions = IsSnes || IsSpc || IsNes || IsGameboy || IsPce || IsSms || IsGba || IsWs;
}
}
}