libsnes: like sms, DisplayType property for ntsc\pal

This commit is contained in:
goyuken 2012-10-06 16:28:42 +00:00
parent b8070bc92f
commit 6d683f9327
1 changed files with 11 additions and 0 deletions

View File

@ -598,6 +598,17 @@ namespace BizHawk.Emulation.Consoles.Nintendo.SNES
}
}
public DisplayType DisplayType
{
get
{
if (LibsnesDll.snes_get_region() == LibsnesDll.SNES_REGION.NTSC)
return BizHawk.DisplayType.NTSC;
else
return BizHawk.DisplayType.PAL;
}
}
//video provider
int IVideoProvider.BackgroundColor { get { return 0; } }
int[] IVideoProvider.GetVideoBuffer() { return vidBuffer; }