From 3c26d9eec1ecb217cc3d980282a49f88d969fbaa Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Fri, 2 Jul 2021 09:10:07 -0400 Subject: [PATCH] Basic Bot: check for Allow U+D/L+R before starting --- src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs b/src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs index 52be4ff236..7e0c768782 100644 --- a/src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs +++ b/src/BizHawk.Client.EmuHawk/tools/BasicBot/BasicBot.cs @@ -125,6 +125,14 @@ namespace BizHawk.Client.EmuHawk return; } + if (!Config.AllowUdlr) + { + DialogController.ShowMessageBox("In order to use this tool, 'Allow U+D / L+R' must be checked in the controller menu."); + Close(); + DialogResult = DialogResult.Cancel; + return; + } + _previousInvisibleEmulation = InvisibleEmulationCheckBox.Checked = Settings.InvisibleEmulation; _previousDisplayMessage = Config.DisplayMessages; }