diff --git a/BizHawk.Client.EmuHawk/MainForm.cs b/BizHawk.Client.EmuHawk/MainForm.cs
index 611c693e20..13f72ae46f 100644
--- a/BizHawk.Client.EmuHawk/MainForm.cs
+++ b/BizHawk.Client.EmuHawk/MainForm.cs
@@ -1690,10 +1690,7 @@ namespace BizHawk.Client.EmuHawk
switch (system)
{
case "GEN":
- if (!(Emulator is PicoDrive)) // Currently PicoDrive doesn't support anything in this menu
- {
- GenesisSubMenu.Visible = true;
- }
+ GenesisSubMenu.Visible = true;
break;
case "TI83":
TI83SubMenu.Visible = true;
@@ -3355,7 +3352,7 @@ namespace BizHawk.Client.EmuHawk
AbortAv();
}
- HANDLE_AUTODUMP:
+ HANDLE_AUTODUMP:
if (argParse._autoDumpLength > 0)
{
argParse._autoDumpLength--;
@@ -3544,7 +3541,7 @@ namespace BizHawk.Client.EmuHawk
if (result)
{
-
+
string loaderName = "*" + OpenAdvancedSerializer.Serialize(ioa);
Emulator = loader.LoadedEmulator;
Global.Game = loader.Game;
diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/PicoDrive/LibPicoDrive.cs b/BizHawk.Emulation.Cores/Consoles/Sega/PicoDrive/LibPicoDrive.cs
index 820ce63e14..425e99eb76 100644
--- a/BizHawk.Emulation.Cores/Consoles/Sega/PicoDrive/LibPicoDrive.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Sega/PicoDrive/LibPicoDrive.cs
@@ -20,6 +20,15 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.PicoDrive
[UnmanagedFunctionPointer(CC)]
public delegate void CDReadCallback(int lba, IntPtr dest, bool audio);
+ public enum Region : int
+ {
+ Auto = 0,
+ JapanNTSC = 1,
+ JapanPAL = 2,
+ US = 4,
+ Europe = 8
+ }
+
///
///
///
@@ -28,7 +37,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.PicoDrive
/// 32X games will still run, but will not have memory domains
///
[BizImport(CC)]
- public abstract bool Init(bool cd, bool _32xPreinit);
+ public abstract bool Init(bool cd, bool _32xPreinit, Region regionAutoOrder, Region regionOverride);
[BizImport(CC)]
public abstract void SetCDReadCallback(CDReadCallback callback);
diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/PicoDrive/PicoDrive.cs b/BizHawk.Emulation.Cores/Consoles/Sega/PicoDrive/PicoDrive.cs
index ddca184c04..826e3b1298 100644
--- a/BizHawk.Emulation.Cores/Consoles/Sega/PicoDrive/PicoDrive.cs
+++ b/BizHawk.Emulation.Cores/Consoles/Sega/PicoDrive/PicoDrive.cs
@@ -8,12 +8,14 @@ using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.IO;
+using BizHawk.Common;
+using System.ComponentModel;
namespace BizHawk.Emulation.Cores.Consoles.Sega.PicoDrive
{
[Core("PicoDrive", "notaz", true, true,
"0e352905c7aa80b166933970abbcecfce96ad64e", "https://github.com/notaz/picodrive", false)]
- public class PicoDrive : WaterboxCore, IDriveLight, IRegionable
+ public class PicoDrive : WaterboxCore, IDriveLight, IRegionable, ISettable