gpgx extra mammry domains

This commit is contained in:
goyuken 2013-12-21 04:03:03 +00:00
parent 9c7dac0aa3
commit 6318a3fb26
3 changed files with 21 additions and 1 deletions

View File

@ -45,7 +45,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
public static extern void gpgx_clear_sram();
public const int MIN_MEM_DOMAIN = 0;
public const int MAX_MEM_DOMAIN = 9;
public const int MAX_MEM_DOMAIN = 13;
[DllImport("libgenplusgx.dll", CallingConvention = CallingConvention.Cdecl)]
// apparently, if you use built in string marshalling, the interop will assume that

View File

@ -312,6 +312,26 @@ GPGX_EX const char* gpgx_get_memdom(int which, void **area, int *size)
return "BOOT ROM";
default:
return NULL;
case 10:
if (sram.on)
{
*area = sram.sram;
*size = 0x10000;
return "SRAM";
}
else return NULL;
case 11:
*area = cram;
*size = 128;
return "CRAM";
case 12:
*area = vsram;
*size = 128;
return "VSRAM";
case 13:
*area = vram;
*size = 65536;
return "VRAM";
}
}

Binary file not shown.