mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Mesen.Config;
|
|
using Mesen.Interop;
|
|
using Mesen.ViewModels;
|
|
|
|
namespace Mesen.Debugger.ViewModels
|
|
{
|
|
public 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;
|
|
}
|
|
}
|
|
}
|