This commit is contained in:
Morilli 2021-12-03 22:15:08 +01:00
parent 0a4bbce3f2
commit 59d76294c9
1 changed files with 12 additions and 9 deletions

View File

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using BizHawk.Common;
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
@ -16,6 +16,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
if (n > regs.Length)
throw new InvalidOperationException("A buffer overrun has occured!");
var ret = new Dictionary<string, RegisterValue>();
using (_elf.EnterExit())
{
for (int i = 0; i < n; i++)
{
// el hacko
@ -26,6 +28,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
ret[name] = new RegisterValue((ulong)regs[i].Value, size);
}
}
return ret;
}