Fix loading of Basic Bot under Mono

This commit is contained in:
YoshiRulz 2021-10-08 13:28:45 +10:00
parent e5c2e7ce4b
commit 1dbcdcdfc1
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 10 additions and 1 deletions

View File

@ -11,10 +11,11 @@ using BizHawk.Client.EmuHawk.ToolExtensions;
using BizHawk.Emulation.Common;
using BizHawk.Client.Common;
using BizHawk.Client.EmuHawk.Properties;
using BizHawk.Common;
namespace BizHawk.Client.EmuHawk
{
public partial class BasicBot : ToolFormBase, IToolFormAutoConfig
public sealed partial class BasicBot : ToolFormBase, IToolFormAutoConfig
{
private string _currentFileName = "";
@ -100,6 +101,12 @@ namespace BizHawk.Client.EmuHawk
PlayBestButton.Image = Resources.Play;
ClearBestButton.Image = Resources.Close;
StopBtn.Image = Resources.Stop;
if (OSTailoredCode.IsUnixHost)
{
AutoSize = false;
Margin = new(0, 0, 0, 8);
}
Settings = new BasicBotSettings();
_comparisonBotAttempt = new BotAttempt();
@ -133,6 +140,8 @@ namespace BizHawk.Client.EmuHawk
return;
}
if (OSTailoredCode.IsUnixHost) ClientSize = new(707, 587);
_previousInvisibleEmulation = InvisibleEmulationCheckBox.Checked = Settings.InvisibleEmulation;
_previousDisplayMessage = Config.DisplayMessages;
}