From 97bedb71906ccaecd76dd1f08f985ae04fa242b7 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 12 Nov 2013 15:47:31 +0000 Subject: [PATCH] Implement get registers for SNES --- BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs index ebebbb386e..71e2e4f549 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/SNES/LibsnesCore.cs @@ -80,7 +80,12 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES public List> GetCpuFlagsAndRegisters() { - throw new NotImplementedException(); + var vals = new List>(); + foreach (var blah in Enum.GetValues(typeof(LibsnesApi.SNES_REG)).Cast()) + { + vals.Add(new KeyValuePair(blah.ToString(), api.snes_peek_logical_register(blah))); + } + return vals; } public class MyScanlineHookManager : ScanlineHookManager