mirror of
https://github.com/libretro/MesenCE.git
synced 2026-11-10 11:11:32 -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
40 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|