From 3610ca2b4cc53b09a5da4ecbc86dfa24f126b826 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sat, 13 Jun 2020 18:17:05 -0500 Subject: [PATCH] virtualpads - prevent crash on Turbo and HyperNyma cores, just empty for now, will support these cores later --- .../tools/VirtualPads/schema/PceSchema.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PceSchema.cs b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PceSchema.cs index bb2055c47d..583a14f47d 100644 --- a/src/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PceSchema.cs +++ b/src/BizHawk.Client.EmuHawk/tools/VirtualPads/schema/PceSchema.cs @@ -17,6 +17,11 @@ namespace BizHawk.Client.EmuHawk { public IEnumerable GetPadSchemas(IEmulator core) { + if (!(core is PCEngine)) + { + return Enumerable.Empty(); + } + var ss = ((PCEngine)core).GetSyncSettings(); var padSchemas = new[]