From 14e8709ae090a3c5c2bcfaca9db59dd358a7330d Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 12 Nov 2013 16:30:35 +0000 Subject: [PATCH] Lua - emu.getregster(s) - add support for dual gameboy --- .../Consoles/Nintendo/Gameboy/GambatteLink.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/BizHawk.Emulation/Consoles/Nintendo/Gameboy/GambatteLink.cs b/BizHawk.Emulation/Consoles/Nintendo/Gameboy/GambatteLink.cs index 52b403ed6e..a0bafd81f2 100644 --- a/BizHawk.Emulation/Consoles/Nintendo/Gameboy/GambatteLink.cs +++ b/BizHawk.Emulation/Consoles/Nintendo/Gameboy/GambatteLink.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.IO; +using System.Linq; using BizHawk.Common; using BizHawk.Emulation.Common; @@ -13,7 +14,13 @@ namespace BizHawk.Emulation.Consoles.GB public List> GetCpuFlagsAndRegisters() { - throw new NotImplementedException(); + var left = L.GetCpuFlagsAndRegisters() + .Select(reg => new KeyValuePair("Left " + reg.Key, reg.Value)); + + var right = R.GetCpuFlagsAndRegisters() + .Select(reg => new KeyValuePair("Right " + reg.Key, reg.Value)); + + return left.Union(right).ToList(); } Gameboy L;