Implement get registers for SNES

This commit is contained in:
adelikat 2013-11-12 15:47:31 +00:00
parent 6d03f12fef
commit 97bedb7190
1 changed files with 6 additions and 1 deletions

View File

@ -80,7 +80,12 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
public List<KeyValuePair<string, int>> GetCpuFlagsAndRegisters()
{
throw new NotImplementedException();
var vals = new List<KeyValuePair<string, int>>();
foreach (var blah in Enum.GetValues(typeof(LibsnesApi.SNES_REG)).Cast<LibsnesApi.SNES_REG>())
{
vals.Add(new KeyValuePair<string, int>(blah.ToString(), api.snes_peek_logical_register(blah)));
}
return vals;
}
public class MyScanlineHookManager : ScanlineHookManager