From 94c397a4f8d17ecab8d99e2848a1cb444f06a327 Mon Sep 17 00:00:00 2001
From: nattthebear <goyuken@gmail.com>
Date: Mon, 29 May 2017 07:36:49 -0400
Subject: [PATCH] snes9x: IRegionable

---
 .../Consoles/Nintendo/SNES9X/Snes9x.cs                    | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs b/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs
index 042857762f..8ddb70bc8a 100644
--- a/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Nintendo/SNES9X/Snes9x.cs
@@ -16,7 +16,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES9X
 	[ServiceNotApplicable(typeof(IDriveLight))]
 	public class Snes9x : IEmulator, IVideoProvider, ISoundProvider, IStatable,
 		ISettable<Snes9x.Settings, Snes9x.SyncSettings>,
-		ISaveRam, IInputPollable
+		ISaveRam, IInputPollable, IRegionable
 	{
 		private LibSnes9x _core;
 		private PeRunner _exe;
@@ -55,12 +55,14 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES9X
 				Console.WriteLine("NTSC rom loaded");
 				VsyncNumerator = 21477272;
 				VsyncDenominator = 357366;
+				Region = DisplayType.NTSC;
 			}
 			else
 			{
 				Console.WriteLine("PAL rom loaded");
 				VsyncNumerator = 21281370;
 				VsyncDenominator = 425568;
+				Region = DisplayType.PAL;
 			}
 
 			_nsampTarget = (int)Math.Round(44100.0 * VsyncDenominator / VsyncNumerator);
@@ -299,7 +301,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES9X
 			}
 		}
 
-		public IEmulatorServiceProvider ServiceProvider { get; private set; }
+		public DisplayType Region { get; }
+
+		public IEmulatorServiceProvider ServiceProvider { get; }
 
 		public void FrameAdvance(IController controller, bool render, bool rendersound = true)
 		{