From abcda424dc6877c626e1a054653ebb64e28eb084 Mon Sep 17 00:00:00 2001 From: adelikat Date: Tue, 29 Oct 2019 12:50:18 -0500 Subject: [PATCH] fix a typo in a message box message, a few other cleanups in the vicinity --- BizHawk.Client.EmuHawk/tools/ToolManager.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/ToolManager.cs b/BizHawk.Client.EmuHawk/tools/ToolManager.cs index e04f82d9f6..9a382d2d11 100644 --- a/BizHawk.Client.EmuHawk/tools/ToolManager.cs +++ b/BizHawk.Client.EmuHawk/tools/ToolManager.cs @@ -147,8 +147,7 @@ namespace BizHawk.Client.EmuHawk // custom settings if (HasCustomConfig(newTool)) { - Dictionary settings; - if (!Global.Config.CustomToolSettings.TryGetValue(toolType, out settings)) + if (!Global.Config.CustomToolSettings.TryGetValue(toolType, out var settings)) { settings = new Dictionary(); Global.Config.CustomToolSettings[toolType] = settings; @@ -362,7 +361,7 @@ namespace BizHawk.Client.EmuHawk } else if (!(val is bool) && prop.PropertyType.IsPrimitive) { - // numeric constanst are similarly hosed + // numeric constants are similarly hosed val = Convert.ChangeType(val, prop.PropertyType, System.Globalization.CultureInfo.InvariantCulture); } @@ -636,7 +635,7 @@ namespace BizHawk.Client.EmuHawk { if (MessageBox.Show( "Are you sure want to load this external tool?\r\nAccept ONLY if you trust the source and if you know what you're doing. In any other case, choose no.", - "Confirmm loading", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + "Confirm loading", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { try {